I am trying to fetch all the records from a table/entity book and the books created by me using a graphQL query:
{
book(filter: "user ==Thomas") {
edges {
node {
name
}
}
}
book {
edges{
node{
name
}
}
}
}
But it is throwing below error:
Fields "book" conflict because they have differing arguments. Use different aliases on the fields to fetch both if this was intentional.
I am not sure how I can retrieve these details using a single query. If I need to use alias, how can I define the aliases in the query?