Questions tagged [graphql]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
9 views

GraphQL private schema returning public schema scope

I am setting up GraphQL on my Craft project, v3.3.16.3 I have a public schema exposing a public entry type, and a private schema exposing a private entry type. When I switch between them in the ...
0
votes
0answers
26 views

How to get previous and next entry using the native GraphQL API?

How do I turn these Craft queries into a GraphQL one? // entry.twig entry.getPrev({ section: "contentHub" }) entry.getNext({ section: "contentHub" }) I want to get the previous and next entry using ...
0
votes
0answers
29 views

How to add custom GraphQL directives?

In addition to the pre-defined directives, is it possible to add more? I need to apply a custom function to a field before GraphQL output. In the documentation, there is a limited list of ...
2
votes
1answer
69 views

Asset field empty in graphql query response

I have a problem with a graphql query which includes an asset field. The asset field is always an empty array. There are no errors in the graphiql tool. The graphql api is not public unfortunately ...
0
votes
0answers
34 views

headless log-In form a different domain

Because I need to mutate my entries headless, i can't use the build in GraphQL. I got it to work to mutate my entries but how can I include a log-in? Because it is a complete different Domain. At the ...
0
votes
0answers
19 views

How to fix the GraphQL “Request header field X-Apollo-Tracing is not allowed by Access-Control-Allow-Headers.” error

I am trying to use https://www.graphqlbin.com to analyze my public GraphQL schema, but it returns the following error message: { "error": "Request header field X-Apollo-Tracing is not allowed by ...
0
votes
0answers
41 views

CraftQL: Upsert Category fails with error

I'm trying to add a category to a Categories relationship field on an entry type called Projects. However, this returns "error": "A non well formed numeric value encountered" Per MutationTest.php -- ...
0
votes
0answers
152 views

Vue + Apollo + CraftQL

I'm starting to dive deeper w/Vue + Apollo + CraftQL but I'm not getting any data on my http://localhost:8080/ but it is mostly working on my Laravel Valet host of https://hybridinteractive.test/test....