How to exclude records in graphQl API

I need to exclude some results from the results i.e

query {
  allArticles (not: ["YXoMLhEAACQABB-q", "YXoE4xEAACMAA_6x"]) {
    edges {
      node {
        _meta {
        titles {

Hello @scubillos

Welcome to the Prismic community, and thanks for reaching out to us.

Unfortunately, it isn’t possible to use not operator with the graphql API for the moment. The Feature Request is already registered on our Product board.

For the moment, you can use the id_in argument with an array of strings, to query documents that include the specified IDs. Learn more about filtering documents in graphql document.

Let me know if you have any further questions related to it.


This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.