For instance, we can pass the application password when executing the curl command against the GraphQL server, replacing the USERNAME and PASSWORD val

⭐️ Released v2.4 with Application Passwords support, compatibility with WordPress multisite, and mutations for pages

submited by
Style Pass
2024-06-06 02:00:05

For instance, we can pass the application password when executing the curl command against the GraphQL server, replacing the USERNAME and PASSWORD values:

When using Gato GraphQL PRO, thanks to the newly added _strBase64Encode field, we can use GraphQL to execute authenticated HTTP requests against another WordPress site.

The query below receives the username and application password (and the endpoint to connect to), creates the required authentication header (of type "Basic base64encoded(username:password)"), and sends an HTTP request against the GraphQL server, passing the GraphQL query to execute:

Check the video for demo Translating pages on a Multilingual site based on WordPress Multisite, where Gato GraphQL helps translate all pages in a multilingual site based on a WordPress Multisite network:

The previously-existing fields Root.page, Root.pages and Root.pageCount retrieve pages for any user, but only public ones (i.e. those with status "publish").

Leave a Comment