Graphql where filter

Hi! I'm using Graphql to query for all documents of a certain Custom Type, and it seems that when using the where filter, and when i didn't create any document of that Custom Type, it throws an error.

{
  "data": null,
  "errors": [
    {
      "message": "Internal server error",
      "path": [
        "allViaggios"
      ],
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ]
    }
  ]
}

Is this behavior correct? Thanks :slight_smile:

Hello @dev.wildtrek

Thanks for reaching out to us.

I am sorry, but I haven't understood your question completely. Have you created documents of that Custom Type and published them? If not, first, you need to create documents and publish them. graphQL API only returns published documents.
Please give me more detail to solve your issue, or It would be better if you could send me your repository URL and Custom Type name. (you can send me by personal message)

Thanks,
Priyanka