menu

WPGraphQL

Free Open Source WordPress plugin that adds an extendable GraphQL Schema and API to your WordPress site

Channels
Team
Posts
Members
Info
down-caret

Help with token validation on an external server

Hi guys, I am using wordpress for the first time and we are using WPGraphQL. I needed to implement a validation of a token that I receive in calls from graphql, I need to validate that token on another server and if that token is valid the query can be executed. I did it using…

thumbsup
0
message-simple
0

Help with browser caching & compression

Hey guys, I'm very new to WPGraphQL and I want help with my page speed scores. When I test my site's speed in GTMetrix it says that all the images that came from Wordpress is not cached and compressed. I host all my sites in Netlify and this only happens in my WPGraphQL site,…

thumbsup
0
message-simple
0

How to mutate custom post types nested?

I would like to update the upvotes inside Ranking > ranking > rankingsPost > upvotes However this is not an option with graphQL it appears.

thumbsup
0
message-simple
0

GraphQL error: Internal server error

I am using GraphQL with wpgraphql inside a WP setup. I have been using the service without any problems until I updated a Custom Post Type and it stopped working. message: "Internal server error", category: "internal", But what is odd is that it still returns the data, along…

thumbsup
1
message-simple
5

Has anybody ever successfully got postgraphile to work?

thumbsup
0
message-simple
0

How to pass JWT token to Apollo Client inside pages/api/*.js files?

I have need to authenticate myself in one of my nextjs lamba files which now lives inside /pages/api/* I currently have a apollo.serverless.js file, this is imported into pages/api/users/update/role/[userId].js where I do my db interactions. This is where it gets a little messy…

thumbsup
0
message-simple
1

How to restart schemer after db scheme changes

I am running my DB and wordpress via docker, I am struggling to get ACFs working with GraphQL and I wanted to confirm that after a db schema change you would need to close down the docker images and restart them, not just a page refresh?

thumbsup
0
message-simple
1

How to register a new Custom Post Type

I am trying to register a new Custom Post Type and have followed the following example: https://docs.wpgraphql.com/getting-started/custom-post-types/#register-a-new-post-type The following code snippet needs to be added to it own PostType nd then added to functions.php with the…

thumbsup
0
message-simple
1

Schema not updating locally.

Hi guys, I'm new to Gatsby and WPGraphQL. My newly added fields in Advanced Custom Fields works in WP GraphiQL but not showing in local GraphiQL. I get an error when I query these newly added fields. How do I force refresh the latest schema? I tried hard refreshing and…

thumbsup
0
message-simple
2

Custom Post Type not being added after register_post_type

I am using the GraphiQL to test if my custom post types are being added to GraphQL. Rankings is displayed on my navigation in WP-Admin, I can add/edit/delete items so I know the CPT is working. However I cannot see it in GraphiQL function.php …

thumbsup
0
message-simple
34