View all forms in the public GraphQL schema not working #1450
-
What happened?If I create a Public GraphQL schema in Craft, I am given the options to select each of my forms to be viewable but also an option for "View all forms" If I tick the view all forms but leave the others unchecked, then I'd expect to be able to query on the public API for any of my forms, instead nothing is returned. The main issue here being that in production we disallow admin changes, which then hides the schema options. This means if our clients create forms in production, we cannot enable them to be available in GraphQL. Errors and Stack Trace (if available)No response How can we reproduce this?
Freeform EditionPro Freeform Version5.5.3 Craft Version5.2.5 When did this issue start?Fresh install of Freeform Previous Freeform VersionNo response |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I'm struggling to replicate what you are seeing. I've setup multiple forms and ticked "View all forms" under GQL Public Schema. I can see these forms when I query forms or an individual form. I've done this Full Schema and Public Schema. I've also disabled allow admin changes and added another new form and refreshed GQL query explorer and ran my query again and the newly create form is listed in the results. If I look at the DB / Project Config, I can see View all forms is listed. Can you give me more info on how your Schema is setup so I can replicate and try reproduce the issue? Thanks |
Beta Was this translation helpful? Give feedback.
-
@paulnzime Is there anything under User Permissions causing the issue? |
Beta Was this translation helpful? Give feedback.
-
@seandelaney Many thanks for the detailed response, I've had another look at this and can confirm it works if only view all forms is checked. So in the following I can query for Enquiry but not for Test under the public schema. Untick Enquiry and I can now query for them all. I guess this kind of makes sense, its either all forms OR the ones ticked. At some point this must have become ticked on our clients website leading to this issue. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
@paulnzime
I'm struggling to replicate what you are seeing.
I've setup multiple forms and ticked "View all forms" under GQL Public Schema.
I can see these forms when I query forms or an individual form. I've done this Full Schema and Public Schema.
I've also disabled allow admin changes and added another new form and refreshed GQL query explorer and ran my query again and the newly create form is listed in the results.
If I look at the DB / Project Config, I can see View all forms is listed.
Can you give me more info on how your Schema is setup so I can replicate and try reproduce the issue?
Thanks