Skip to content
Discussion options

You must be logged in to vote

Sorry, I tested by passing specific IDs into the param, which does in fact result in an inclusive search (or):

{
{
  entries(
    relatedToEntries: {
      id: [129, 122]
    }
  ) {
    # ...
  }
}

You could reformat your query like so, which would also result in an inclusive search:

{
  entries(
    relatedToEntries: [
      {
        slug: ["test", "test1"]
      	section: ["page", "news"]
      }
    ]
  ) {
    # ...
  }
}

(Though I realize that isn’t quite the same as what you’re going for – as you don’t want to pull in test1 from the news section, or test from the page section, etc.)

I am not saying it should be a or by default in the gql relatedToEntries argument, but maybe it co…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@Aku-benj
Comment options

@brandonkelly
Comment options

@Aku-benj
Comment options

@brandonkelly
Comment options

Answer selected by Aku-benj
@Aku-benj
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants