Skip to content

Syntax Confusion #315

Closed Answered by Palak-K9
Palak-K9 asked this question in Q&A
Apr 18, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I wanted to query users like the following -

query user( $uuid: ID ){
  user(uuid: $uuid) {
    uuid
    name
    associates { name uuid }
  }
}

But, following the above query wasn't giving me the correct result i.e. it was giving me users but not with the uuid, I was passing.

So, I had to query using the "where" keyword. The below query is working fine for me and its result is what I want to achieve without using the where keyword.

query user( $uuid: ID ){
  user(where: {uuid: $uuid}) {
    uuid
    name
    associates { name uuid }
  }
}

I found out that I have to set "useWhereFilter" to false in the GraphQLConfiguration.java class.

{
  "queryOptionStyle": "INPUT_TYPE",
  "useWhereFil…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Palak-K9
Comment options

Answer selected by Andy2003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants