Skip to content
Discussion options

You must be logged in to vote

Hey @franciscocobas , I think you're looking for something like this:

{
  posts(where: {categoryIn: ["todays-menu"], orderby: {field: DATE, order: DESC}) {
    nodes {
      title
    }
  }
}

I recommend downloading a GraphQL client to use to explore the WPGraphQL schema outside of Gatsby. That will help you build queries like this on your own. If you install the Graphiql app, you can explore the schema by pressing shift+space to get a dropdown of available fields and arguments for the spot where your cursor is in the query.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by franciscocobas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants