#Query labels

11 messages · Page 1 of 1 (latest)

fringe mantle
#

is it possible to query the user's labels?
like i have a function and i want to query a user's list based on a label.

mossy star
#

docs say:

Array of query strings generated using the Query class provided by the SDK. Learn more about queries. Maximum of 100 queries are allowed, each 4096 characters long. You may filter on the following attributes: name, email, phone, status, passwordUpdate, registration, emailVerification, phoneVerification, labels

fringe mantle
#

Query.contains('labels', ['somelable'])
giving an error

dull thunder
#

Query.equal('labels', ['somelable'])

fringe mantle
# mossy star What error?

AppwriteException: Server Error
at _Client.call (file:///usr/local/server/src/function/node_modules/node-appwrite/dist/client.mjs:278:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Users.list (file:///usr/local/server/src/function/node_modules/node-appwrite/dist/services/users.mjs:31:12)
at async Module.default (file:///usr/local/server/src/function/src/main.js:61:20)
at async execute (/usr/local/server/src/server.js:208:16)
at async action (/usr/local/server/src/server.js:225:7)
at async /usr/local/server/src/server.js:14:5

fringe mantle
mossy star
fringe mantle
#

appwrite selfhosted Version 1.6.0
node-appwrite: 14.1.0

mossy star