Skip to content

No Form Fields Available when Building with Gatsby #449

Description

@pseelinger

Description

Using GraphQL IDE inside the CMS:
Image
Using GraphiQL during gatsby develop
Image

Since upgrading to v0.13.0, form fields return from the GraphQL endpoint fine in the admin, but using gatsby-source-wordpress, any attempt to fetch formFields returns an empty array. I tried directly hitting my GraphQL endpoint using Httpie to make sure this wasn't an authentication issue, and it returns the fields just fine.

Steps to reproduce

Install the plugins below and test the following queries. The frontend of the site should use Gatsby with gatsby-source-wordpress installed:

Backend Query:

  gfForms {
    edges {
      node {
        formFields {
          edges {
            node {
              type
            }
          }
        }
      }
    }
  }
}

Frontend Query:

  allWpGfForm {
    edges {
      node {
        formFields {
          nodes {
            type
          }
        }
      }
    }
  }
}

Additional context

Tested this with just WPGraphQL, WP Gatsby, and WP GraphQL for Gravity Forms activated on the site.

Plugin Version

0.13.0.1

Gravity Forms Version

2.9.2

WordPress Version

6.7.1

WPGraphQL Version

1.31.1

Additional enviornmental details

PHP version: 8.3.16
WP Gatsby: 2.3.3
gatsby-source-wordpress: 7.14.0

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: high 🚨unblocks new usecases, substantial improvement to existing feature, fixes a major bugstatus: confirmed 📍The issue has been confirmed and reproduced.triagedIssue has been analyzed by the triage pipelinetype: bug 🐛Something isn't workingworkaround provided 🩹A workaround has been provided until the bug is fixed.

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions