How to search for stories by tags
The main search entry point is on me {}
, it actually makes a search through the permissions of what the user can see.
This example demonstrates how to retrieve a list of content from a tag. First you will need the GraphQL id of this tag.
graphqlquery QueryExample {me {search(query: { tags: ["TAG_ID"] }) {stories {story {id}}}}}
Expected result:
response{"data": {"me": {"search": {"stories": [{"story": {"id": "hizjdOIHSZod"}},{"story": {"id": "jfoiaqIUZA"}},{"story": {"id": "OIZJapzkda"}}]}}}}