sivagowda
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
It is, why not?
Binyamin
Use it like so
TypeScript
const sdk = require("node-appwrite");
sdk.Query.equal('attrbiute', value)
sivagowda
const { Query } = require('node-appwrite'); is this works
Binyamin
Also, sppouse to, yes.
sivagowda
OK. I will try. Thanks
Guille
Did you solve your problem?
Recommended threads
- Type Mismatch in AppwriteException
There is a discrepancy in the TypeScript type definitions for AppwriteException. The response property is defined as a string in the type definitions, but in pr...
- What Query's are valid for GetDocument?
Documentation shows that Queries are valid here, but doesn't explain which queries are valid. At first I presumed this to be a bug, but before creating a githu...
- My organization's project is blocked
My organization's project is blocked so unblocked my organization then I will this