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…
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,…
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…
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…
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?
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…
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…
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 …