Back

Filter documents inside functions.

  • 0
  • Android
  • Functions
  • Databases
sivagowda
9 Jun, 2023, 15:27

I want filter the list of documents based on a attribute value in server side( in appwrite function using node sdk). Query class is not supported in node sdk. How can do this?

TL;DR
The user is asking for help on how to filter a list of documents based on an attribute value in an appwrite function using the node SDK. They are wondering if the `Query` class works but it is not supported in the node SDK. A solution is not provided in the thread.
Binyamin
9 Jun, 2023, 15:27

It is, why not?

Binyamin
9 Jun, 2023, 15:28

Use it like so

TypeScript
const sdk = require("node-appwrite");

sdk.Query.equal('attrbiute', value)
sivagowda
9 Jun, 2023, 15:28

const { Query } = require('node-appwrite'); is this works

Binyamin
9 Jun, 2023, 15:29

Also, sppouse to, yes.

sivagowda
9 Jun, 2023, 15:29

OK. I will try. Thanks

Guille
19 Jun, 2023, 13:08

Did you solve your problem?

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