Back

[SOLVED] Query.Filter in Rest ?

  • 0
  • Web
  • Tools
  • Databases
  • Cloud
  • Self Hosted
Waldemar
27 Sep, 2023, 17:31

i'm trying filter email = myemail@gmail.com, in https://cloud.appwrite.io/v1/users?search=myemail@gmail.com Using just search, information appears that has no relation to what I'm looking for... is there any way to filter without using the Query API in REST requests?

TL;DR
There is a solution to filter in REST requests without using the Query API. You can use the "queries" parameter in the URL to filter the results. For example, to filter by email, you can use: https://cloud.appwrite.io/v1/users?queries[]=equal("email", "myemail.@gmail.com"). Here is the documentation for more information: <https://appwrite.io/docs/rest> and <https://appwrite.io/docs/server/users?sdk=rest-default#usersList>.
Waldemar
27 Sep, 2023, 17:40

I haven't read it yet, but how do I send the query in the url? Does it need to be in the body or in the parameters?

Waldemar
27 Sep, 2023, 18:03

awesome !

Waldemar
27 Sep, 2023, 18:13

[SOLVED] Query.Filter in Rest ?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more