Suppose if we want to query multiple fields on GraphQL, how to do that ?
{
book(id:"123",name:"book1") {
id,
name,
authors{
id
}
}
}
Also, how to filter out subfield, like author based on name??
{
book(id:"123",name:"book1") {
id,
name,
authors(name:"author1"){
id
}
}
}
I have found this article, but just wanted to know is there any better way . https://www.yld.io/blog/query-by-2-or-more-fields-on-graphql/