You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
resolve: `gatsby-source-wordpress`,
options: {
verboseOutput: true,
debug: {
graphql: {
writeQueriesToDisk: true,
panicOnError: true,
},
},
url: `*****/graphql`,
// allows a fallback url if WPGRAPHQL_URL is not set in the env, this may be a local or remote WP instance.
//process.env.WPGRAPHQL_URL || `https://uscca.local/graphql`,
schema: {
//Prefixes all WP Types with "Wp" so "Post and allPost" become "WpPost and allWpPost".
typePrefix: `Wp`,
timeout: 10000000,
perPage: 5,
},
develop: {
//caches media files outside of Gatsby's default cache an thus allows them to persist through a cache reset.
hardCacheMediaFiles: true,
},
type: {
Post: {
limit:
process.env.NODE_ENV === `development`
? // Lets just pull 50 posts in development to make it easy on ourselves (aka. faster).
100
: // and we don't actually need more than 5000 in production for this particular site
20,
},
Tag: {
limit:
process.env.NODE_ENV === `development`
? // Lets just pull 50 posts in development to make it easy on ourselves (aka. faster).
200
: // and we don't actually need more than 5000 in production for this particular site
20,
},
Page: {
limit:
process.env.NODE_ENV === `development`
? // Lets just pull 50 posts in development to make it easy on ourselves (aka. faster).
40
: // and we don't actually need more than 5000 in production for this particular site
20,
},
},
},
This discussion was converted from issue #29621 on February 22, 2021 09:01.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
WordPress Gatsby Source plugin returns empty whereas WPGraphQL returns correct data. Not sure why the results are.
When I run
gatsby develop
no errors are thrown. User and User Role bothreturn 0
I do not understand why?ENV -
Wordpress setup -
WPGraphQL -
v1.1.5
WP Gatsby -
v1.0.1
gatsby-config.
Beta Was this translation helpful? Give feedback.
All reactions