We aren't able to configure a public schema for GraphQL via the yaml configuration files.
This was reported earlier in this issue: https://github.com/craftcms/cms/issues/6078 and closed because it should be fixed in the 3.5 release.
We upgraded to 3.5 RC1.1 but the issue still persists.
allowAdminChanges on true)config/project/graphql/schemas with the isPublic flag on true.allowAdminChanges on false).Missing Authorization headercraft graphql/print-schema on the staging/production environmentNo public schema exists, and one can鈥檛 be created because allowAdminChanges is disabled.Ah, sorry about that! Just pushed a fix for the next 3.5 release!
Craft 3.5 RC2 is out now with that fix.
@andris-sevcenko @brandonkelly Thank you for looking into this!
I've updated to RC2 (and also tested on the 3.5 branch), but the issue doesn't seem to be resolved.
I get the same result. I already re-generated the GraphQL schema but that's not changing anything. Do I need to do anything else?
@TrafeX you can fix this by running project-config/apply --force. This is because, before the fix, the public token settings were not created and/or attached to the public schema, if no such link existed. However, Craft thought everything was fine and dandy with GraphQL public schema settings. By running project-config/apply with the --force setting, you're telling Craft to treat everything in the project config files as an incoming change and trigger re-saving for everything, including the public schema settings.
Sorry for the run-around!