I am trying to fetch the content from the model using graphql (Next JS). I want to filter results by slug. In the playground I was able to do it but if I pass it dynamically in the code it throws error,
There was an error processing your request
I tried in postman as well but it’s showing the same error.
Reproducible code example
curl --location 'https://cdn.builder.io/api/v3/graphql/{api-key}' \
--header 'Content-Type: application/json' \
--data '{
"query": "query GetAizleSiteArticles($slug: String!) { aizleSiteArticles(query: { data: { slug: $slug } }) { data { id slug title } } }",
"variables": {
"slug": "my-slug"
}
}'
Help will be much appreciated xx