sdk-for-flutter icon indicating copy to clipboard operation
sdk-for-flutter copied to clipboard

🐛 Bug Report: problem with graphQL queries in Dart

Open TechComet opened this issue 1 year ago • 1 comments

👟 Reproduction steps

final tryGraphQL = await ApiClient.graphQL.query(query: {'query':
    """
  
  query {
    databasesListDocuments(
        databaseId: "$appwriteDatabaseId",
        collectionId: "$collectionId",
         queries: ["equal("name", "myname")"]
             ) {
                 total
                 documents {
                  _id
                  data
                  }
                }
}
  """
    });

it's work if I remove queries: ["equal("name", "myname")"]

👍 Expected behavior

get data from database

👎 Actual Behavior

{errors: [{message: Field "databasesListDocuments" argument "queries" requires type String, found name., extensions: {category: graphql}, locations: [{line: 6, column: 51}]}, {message: Field "databasesListDocuments" argument "queries" requires type String, found myname., extensions: {category: graphql}, locations: [{line: 6, column: 59}]}]}

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Linux

🧱 Your Environment

appwrite: ^12.0.4 appwrite server: self-hosting 1.5.7

👀 Have you spent some time to check if this issue has been raised before?

  • [X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

TechComet avatar Jun 28 '24 21:06 TechComet