-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Graphiql-ide page not loading after activating the plugin #10
Comments
Hello, Have a look at the network tab as well and see if there is any more information on the error. Could you provide more information on the acf fields you are using. I don't think I support all of them yet. Thanks |
Sure! This is the response I'm getting in the network request on that page:
This is with debug activate in the GraphQL plugin. I'm pretty sure the DUPLICATE_TYPE warning in the end is unrelated. It was there before adding your plugin. |
Will try to activate the plugin in a test install without any fields and see if that makes a differens. |
It works in my test install with 1 active text field so it's probably related to unsupported field types like you mention. Will add a few more to figure out which one it is. |
Error gets triggered when I add the "Post Object" field type. |
It seems to be 2 issues: The first error message "Internal server error" seem to be related to the Google maps field. Adding that breaks both the Graphiql IDE and the ACF field group edit page. The last message regarding the "PostObjectUnion" is when a Post Object field typ is set to return the whole Post Object. But it works if you set the return to "Post ID". |
Yes, I use post ID internally, never tried it with postObject. The Ide could do with better debugging support :) Will look into fixing this when i get a chance. Thank you for pointing this out |
Sure, no issue. Thanks for building the plugin! I might look into adding support for the Google Maps field myself, might need it later on in the project I'm working on. But for now some text fields will do just fine for the address :) Side note: One thing I noticed when adding test fields is that if you save a field with empty "name" field it breaks the Graphiql IDE as well, which makes kind of sense. But it only happens with your plugin active so it seems the WPGraphQL for Advanced Custom Fields have some failsafe for this. |
Any pointers on adding more field types to your plugin? |
As to where in the code start here: https://github.com/zngly/wp-graphql-acf-mutations/blob/main/src/config.php#L371 I suggest forking the repo and submitting a pr. This plugin is mainly used internally at Zngly. I am happy to expand the collaboration to whomever wishes to contribute 😄. If you have any tips on any improvements feel free to message me |
Hi,
I'm running into a JS console error when trying to load the Graphiql-ide page in WP-admin after activating your plugin.
Requests to the API still seem to work properly.
Wordpress: Version 6.1 - RC3
Advanced Custom Fields PRO: Version 6.0.3
WP GraphQL: Version 1.12.0
WPGraphQL for Advanced Custom Fields: Version 0.6.1
WPGraphQL ACF Mutations: Version 1.1.1
The text was updated successfully, but these errors were encountered: