I get the error "Unknown argument "where" on field"
Further more, I need to query by id. So if I go to this URL /author/estherval I can get the ID of the author but then how can I use this id as a variable in my next query to retrieve the related posts.
I updated that document to be more accurate. So, category is the API ID of a Content Relationship or Link field, and "field" should be the ID of the document you're looking for.
Then, for the URL, It'll depend on how you're building your URLs.
To make queries to get related posts you could use the similar argument or do a fullText search, which also uses the where argument. It looks for coincidences in Rich Text, Key Text, Select, and UID fields
Hey Kris, I didn't realize at first that you where using Gatsby. In this case, it is not a where argument what you need. You'll use the filter argument to get all the docs that match a given Id. Take a look at this new example query