You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const{ Client, Databases,ID, Query }=require('appwrite');constclient=newClient().setEndpoint('https://cloud.appwrite.io/v1').setProject('64ad1e3103fde8825ab8');constdatabases=newDatabases(client);constpromise=databases.listDocuments('64ad1e91ce62e8e6297f','64ad1eb651ec1c154276',[/* I want to get data with 'name' attribute and user read permission status is on */Query.select(['name'])]);promise.then(function(response){console.log(response);},function(error){console.log(error);});
I get an error message
AppwriteException: Querymethodnot valid: selectatClient.<anonymous>(C:\Users\myuser\Desktop\myapp\node_modules\appwrite\dist\cjs\sdk.js:393:27)atGenerator.next(<anonymous>)
at fulfilled (C:\Users\myuser\Desktop\myapp\node_modules\appwrite\dist\cjs\sdk.js:24:58)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {code: 400,type: 'general_argument_invalid',response: {message: 'Query method not valid: select',code: 400,type: 'general_argument_invalid',version: '0.10.45'}}
👀 Have you spent some time to check if this issue has been raised before?
💭 Description
I have followed the documentation but the result is not correct
address: https://appwrite.io/docs/databases-queries
My code
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: