Skip to content

'Invalid use of comma' error on simple GraphQL get queries #5175

@CosmicPangolin

Description

@CosmicPangolin

What version of Dgraph are you using?

v20.0.3

Have you tried reproducing the issue with the latest release?

Docker image is 'latest,' updated 3/30

What is the hardware spec (RAM, OS)?

Google Cloud VM (8gb)

Steps to reproduce the issue (command/config used to run Dgraph).

Run Dgraph in docker, upload simple schema, save data with mutation, try to query with getType. From Insomnia:

{
  getUser(id: "abcd") {
    id
  }
}

{
  "errors": [
    {
      "message": "Dgraph query failed because Dgraph query failed because line 2 column 19: Invalid use of comma."
    }
  ]
}

Expected behaviour and actual result.

queryType works fine; only getType fails with this error. Mutations also seem to work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/graphqlIssues related to GraphQL support on Dgraph.kind/questionSomething requiring a response.status/acceptedWe accept to investigate/work on it.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions