Skip to content

🐛 Bug Report: problem with graphQL queries in Dart #210

@TechComet

Description

@TechComet

👟 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?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingquestionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions