Replies: 3 comments 3 replies
-
hey @leoloso, im not opposed to the idea but im not sure realistically what kind of timeline we'd be looking at for this support i've been a bit MIA on this project admittedly but i've already started on a major overhaul of the project that i have yet to jump back in and pick up: #477 so if anything it owuld likely be after the App Router migration and not sure when that will happen |
Beta Was this translation helpful? Give feedback.
-
@colbyfayock I guess there's no rush to incorporate it. However I can help, then we can make it sooner. I don't mind doing the changes in my repo, then whenever they are ready we can merge it to your starter, either before or after the App Router. In that case, I need your direction and supervision, and I implement it. I'd need to know if you agree with the proposal of having a folder for providers, with subfolders What do you think? |
Beta Was this translation helpful? Give feedback.
-
@colbyfayock any feedback on my previous comment? I have a bit of time now and I could work on this |
Beta Was this translation helpful? Give feedback.
-
Hi @colbyfayock
I've released Gato GraphQL in the WordPress plugin directory: https://wordpress.org/plugins/gatographql/
This is yet another GraphQL server for WordPress, like WPGraphQL.
I am using using Gato GraphQL as the source for your starter project, and it works wonders:
https://github.com/leoloso/next-wordpress-starter/tree/Add-plugin-GraphQL-API-for-WP-as-the-GraphQL-source-2
Question: Would you be interested in incorporating it into the starter (in addition to WPGraphQL), allowing developers to choose which source to use on their projects?
The changes to adapt the code have been minimal: Only the GraphQL queries in the data files had to be adapted, and no JS logic whatsoever. You can see the differences here:
main...leoloso:Add-plugin-GraphQL-API-for-WP-as-the-GraphQL-source-2#files_bucket
The way I see it, all the data files could be located under a subfolder for the provider (
wpgraphql
andgatographql
), using WPGraphQL as the default one.The supported WordPress GraphQL schema is the same (with a few different field names). Yoast SEO is not integrated though.
Beta Was this translation helpful? Give feedback.
All reactions