Couldn\’t rewrite query because Argument () of * was not able to be parsed as a string #8134
Labels
area/graphql
Issues related to GraphQL support on Dgraph.
community
Issue or PR created by the community.
investigate
Requires further investigation
kind/bug
Something is broken.
Stale
Hi there!
After days of debugging I just cannot figure out why my query is not working. This is the setup running Dgraph v21.12.0:
Scheme
Query
Variables
Error
couldn’t rewrite query getChat because Argument (chat_id) of getChat was not able to be parsed as a string
Putting the chat_id directly into the query does work:
But separating the query and variables does not. Does anybody have any clue what I’m doing wrong?
After reading through the documentation I noticed that
@id
declarations can only be assigned toStrings
types, as stated in the docs. However, the Dgraph v21.03.0 release notes state the following:So, it this a bug? @akon-dey encouraged me to file this Github issue, more info here:
https://discuss.dgraph.io/t/couldn-t-rewrite-query-because-argument-of-was-not-able-to-be-parsed-as-a-string/17376/2
The text was updated successfully, but these errors were encountered: