Skip to content

Howto query in GraphQL for entries related to categories based on selection of categories in an entry? #9849

Answered by andris-sevcenko
ctigelaar asked this question in Q&A
Discussion options

You must be logged in to vote

You would need to run a separate query for that. The entry query for the main entry to display and the other one to get the entries related to the category.

Something like

entries (relatedToCategories: [{slug: "beer"}]) {
  title
  uri
  id
}

should work.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ctigelaar
Comment options

@andris-sevcenko
Comment options

@wbrowar
Comment options

Answer selected by ctigelaar
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