Custom Fields returns values in GraphiQL IDE but null
in Next.js
#2682
marco910
started this conversation in
Advanced Custom Fields
Replies: 1 comment 1 reply
-
Most User data is private to authenticated requests. Sounds like you're running your queries as an authenticated user in the IDE (the green dot on your profile image), but unauthenticated in Next.JS |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I'm using WPGraphQL with my Next.js app. Everything works fine when trying to query custom ACF field groups expect one thing. When trying to query a select field, where the author can select users from the WP site, the field returns the correct values when querying inside GraphiQL IDE on WordPress. But if I query from Next.js (with Apollo Client) I'm getting a
null
value for each field.I'm able to query all other fields. Just those two ones are not working.
Any ideas what this could cause?
Beta Was this translation helpful? Give feedback.
All reactions