Closed etnichols closed 4 years ago
@jasonbahl -- could you provide more guidance on how to actually use the wp-graphql plugin with the authentication plugins you mention in the documentation?
Workaround:
{
resolve: `gatsby-source-wordpress-experimental`,
options: {
AllSettings: {
excludeFieldNames: ['generalSettingsEmail'],
},
GeneralSettings: {
excludeFieldNames: ['email'],
},
},
},
To bypass the auth-only fields.
gatsby-source-wordpress-experimental: 1.3.6
Using WP GraphQL plugin version 0.10.3
Relevant build output:
Digging into this error message led me to this WP Graphql discussion: https://github.com/wp-graphql/wp-graphql/issues/373. Which was formalized into https://docs.wpgraphql.com/guides/authentication-and-authorization/. Very helpful!
The relevant part of the docs:
Which leads to my questions:
allSettings.generalSettingsEmail
andgeneralSettings.email
actually necessary for the build process?