8000 📚 Documentation: Missing Query method in appwrite package · Issue #5802 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

📚 Documentation: Missing Query method in appwrite package #5802

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
ghost opened this issue Jul 11, 2023 · 0 comments
Closed
2 tasks done

📚 Documentation: Missing Query method in appwrite package #5802

ghost opened this issue Jul 11, 2023 · 0 comments
Assignees

Comments

@ghost
Copy link
ghost commented Jul 11, 2023

💭 Description

const { Client, Databases, ID, Query } = require('appwrite');

const client = new Client().setEndpoint('https://cloud.appwrite.io/v1').setProject('64ad1e3103fde8825ab8');

const databases = new Databases(client);

const promise = 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: Query method not valid: select
    at Client.<anonymous> (C:\Users\myuser\Desktop\myapp\node_modules\appwrite\dist\cjs\sdk.js:393:27)
    at Generator.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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@stnguyen90 stnguyen90 self-assigned this Jul 12, 2023
@appwrite appwrite locked and limited conversation to collaborators Jul 12, 2023
@stnguyen90 stnguyen90 converted this issue into discussion 49E3 #5804 Jul 12, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0