AxeWP/wp-graphql-gravity-forms

gfSettings not showing up in Gatsby GraphiQL

robmarshall opened this issue · 3 comments

Description

Gatsby does not seem to correctly fetch GF Settings from WP

Steps to reproduce

WordPress 6.0 with:

  • Gravity Forms 2.6.3
  • WP Gatsby 2.3.3
  • WP GraphQL 1.8.6
  • WPGraphQL for Gravity Forms 0.11.1.1

Gatsby Install: https://github.com/robmarshall/gatsby-gravity-form-example

  • gatsby-source-wordpress
  • gatsby-plugin-gravity-forms

Connect your WP install to Gatsby within gatsby-config.js on lines 39 & 45.

Install everything with yarn
Then run with yarn start

Once built, navigate to http://localhost:8000/__graphql

Should see all collected nodes. But no settings.

Additional context

No response

Plugin Version

0.11.1.1

Gravity Forms Version

2.6.3

WordPress Version

6.0

WPGraphQL Version

1.8.6

Additional enviornmental details

Gatsby
The 'WP Gatsby' plugin is needed to connect to Gatsby and populate the GraphiQL editor mentioned above.

Please confirm that you have searched existing issues in the repo.

  • Yes

Please confirm that you have disabled ALL plugins except for Gravity Forms, WPGraphQL, and WPGraphQL for Gravity Forms

  • Yes
  • My issue is with a specific 3rd-party plugin.

I cant seem to replicate (clean install generated with composer install-test-env), everything seems to be there and values are returning correctly.

@robmarshall Can you provide a screenshot of what you see in the Documentation explorer when you search GfSettings? Is there anything wonky in your gatsby build logs?

image

image

Ah. I was unaware gfSettings was under wp. I presumed it would be root level with all the other GF associated nodes. I have found it.

Thanks for the screenshot. That helped!

@robmarshall that's a WPGatsby thing I think, because it's an GfSettings is an object not a connection to a particular node. All I know for sure is it's automagical ✨