Skip to content

Error: `Fields "book" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional. #2392

Answered by aklish
bappajubcse05 asked this question in Q&A
Discussion options

You must be logged in to vote

Rewrite your query more like:

{  
  mybooks1: book(filter: "user ==Thomas") {
    edges {
      node {
        name        
      }
    }
  }
  mybooks2: book {
    edges{
      node{
        name
      }
    }
  }
}

where mybooks1 and mybooks 2 are aliases you assign to each collection.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Cardoso-topdev
Comment options

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

This discussion was converted from issue #2390 on October 29, 2021 21:20.