1

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 GraphQL -> Explore panel, both return the results of the public schema.

See attached screens.

Public schema settings

Private schema settings

Public schema query results

Private schema query results

Any suggestions would be much appreciated! Thanks :-)

2

It turned out that MAMP Pro was stripping out the Authorization header, so every request was treated as a request to the public schema. The solution for MAMP Pro was to enable "Identical PHP version for all hosts (module mode)" in the PHP tab.

Thanks to Brandon Kelly from the Craft forum for pointing me in the right direction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.