Can it access the filesystem too? Specifically, the lifetime version of WPCodeBox stores snippets in the filesystem, but doesn't provide Cloud Storage. However, can Gato GraphQL read from and write to the filesystem, so that we can easily backup and apply changes to any of our websites?
A: Technically yes, but I haven't coded any field that does that yet, as it's a potential security hazard. But it's totally doable.
If you're up to the task, you can add a FieldResolver with a field "readFile" that you pass a path, and will load the contents of that file. Same for a `writeToFile` field. Check the ExtensionStarter repo to create your own resolvers:...
Absolutely interested - please keep me in the loop, thanks. Would this be able to return a list of sub-directories & files in a given directory? How about all directories and files are blacklisted by default, but the Wordpress admin can choose what to whitelist (setting)?
It can do anything you want, as long as it's coded via a resolver. And yes, Gato GraphQL has settings, so you could define to white/blacklist files, it's really up to you.
To stay in the loop, the best way is to subscribe to the newsletter, I'll communicate there if/when creating extensions with AI works and how to do it: https://gatographql.com/newsletter
Q: Migrating WordPress Comments
I moved a copy of my Wordpress site into a staging environment where I am doing some major renovations. The original site is still live and receiving comments. When the new site is ready for launch, I would like to move all of the comments that were posted during the rebuilding phase, and add them to the comments database of the newly rebuilt site. Could I use Gato GraphQL to accomplish this task?
Sorry if this question has been answered elsewhere, I searched but couldn't find the answer.
For any future modules that you may add, will these also be available within the existing plans that we purchase now and if so, what tiers will they be in? And if not, will there be some kind of discount available?
I'm definitely going to pull the trigger and buy, this is an exciting opportunity, looks a great product, but I need to work out which tier I need to buy.
Q: Fetching content from an external API and creating custom posts with custom fields and taxonomies
Can your tool fetch data from an external, third-party API and then periodically create custom posts with custom fields and taxonomies (for example set up in ACF or Meta Box)? The values of custom fields and taxonomies should be mapped from the data provided by the API. It should run automatically in specified intervals.
If this is possible, which extensions would be needed and is there a chance for a tutorial?
Thank you for your quick answer. How about mapping and assigning taxonomy terms based on API data? Will it be together with "meta field mutations" or is it already possible?
A: If there is demand from my customers, I could add support for it. (It would be done after some other more pressing integrations, such as WooCommerce)
Q: Access Wordpress filesystem?
Can it access the filesystem too? Specifically, the lifetime version of WPCodeBox stores snippets in the filesystem, but doesn't provide Cloud Storage. However, can Gato GraphQL read from and write to the filesystem, so that we can easily backup and apply changes to any of our websites?
Leonardo_GatoGraphQL
Mar 19, 2025A: Technically yes, but I haven't coded any field that does that yet, as it's a potential security hazard. But it's totally doable.
If you're up to the task, you can add a FieldResolver with a field "readFile" that you pass a path, and will load the contents of that file. Same for a `writeToFile` field. Check the ExtensionStarter repo to create your own resolvers:...
Share Gato GraphQL
Absolutely interested - please keep me in the loop, thanks. Would this be able to return a list of sub-directories & files in a given directory? How about all directories and files are blacklisted by default, but the Wordpress admin can choose what to whitelist (setting)?
It can do anything you want, as long as it's coded via a resolver. And yes, Gato GraphQL has settings, so you could define to white/blacklist files, it's really up to you.
To stay in the loop, the best way is to subscribe to the newsletter, I'll communicate there if/when creating extensions with AI works and how to do it: https://gatographql.com/newsletter
Q: Migrating WordPress Comments
I moved a copy of my Wordpress site into a staging environment where I am doing some major renovations. The original site is still live and receiving comments. When the new site is ready for launch, I would like to move all of the comments that were posted during the rebuilding phase, and add them to the comments database of the newly rebuilt site. Could I use Gato GraphQL to accomplish this task?
Leonardo_GatoGraphQL
Mar 18, 2025A: Yes you can, here are some guides showing how to fetch and add comments: https://gatographql.com/guides/query/comments
Share Gato GraphQL
Q: Future modules and tiers
Hi,
Sorry if this question has been answered elsewhere, I searched but couldn't find the answer.
For any future modules that you may add, will these also be available within the existing plans that we purchase now and if so, what tiers will they be in? And if not, will there be some kind of discount available?
I'm definitely going to pull the trigger and buy, this is an exciting opportunity, looks a great product, but I need to work out which tier I need to buy.
Thanks
Leonardo_GatoGraphQL
Edited Mar 11, 2025A: Hi, new Premium Extensions will be sold separately. And yes, existing customers can get a discount
Share Gato GraphQL
Q: Fetching content from an external API and creating custom posts with custom fields and taxonomies
Can your tool fetch data from an external, third-party API and then periodically create custom posts with custom fields and taxonomies (for example set up in ACF or Meta Box)? The values of custom fields and taxonomies should be mapped from the data provided by the API. It should run automatically in specified intervals.
If this is possible, which extensions would be needed and is there a chance for a tutorial?
Leonardo_GatoGraphQL
Mar 6, 2025A: I'm currently working on meta field mutations, it should be ready in.a few weeks. Other than that, yes that's all possible right now.
You'll need the extensions from tier 3/4.
On the Gato GraphQL website there are multiple demos/guides, combining them you can satisfy your use case:
- Running a query automatically at specified intervals:...
Share Gato GraphQL
Verified purchaser
Thank you for your quick answer. How about mapping and assigning taxonomy terms based on API data? Will it be together with "meta field mutations" or is it already possible?
yes you can do that already, examples here:
https://gatographql.com/guides/query/custom-tags#creating-updating-and-deleting-a-custom-tag
https://gatographql.com/guides/query/custom-categories#creating-updating-and-deleting-a-custom-category
Btw, notice that there are no integrations with ACF/MetaBox currently, but still can mutate CPTs. Check:
https://gatographql.com/guides/query/custom-posts
Q: WPML integration planned?
I see that there is a Polylang integration available. Are there any plans for WPML as that is my tool of choice?
Leonardo_GatoGraphQL
Mar 4, 2025A: If there is demand from my customers, I could add support for it. (It would be done after some other more pressing integrations, such as WooCommerce)
Share Gato GraphQL