Skip to content

[5.x] Support Sections in form GraphQL queries - #11466

Merged
jasonvarga merged 3 commits into
statamic:5.xfrom
ryanmitchell:feature/support-sections-in-form-graphsql
Feb 18, 2025
Merged

jasonvarga merged 3 commits into
statamic:5.xfrom
ryanmitchell:feature/support-sections-in-form-graphsql

Conversation

@ryanmitchell

Copy link
Copy Markdown
Contributor

This PR adds support for sections in GraphQL queries:

query MyQuery {
  form(handle: "test") {
    title
    rules
    honeypot
    handle
    sections {
      instructions
      display
      fields {
         instructions
         type
         display
         handle
         config
         width
      }
    }
  }
}

Closes #8482

@jasonvarga jasonvarga left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding a test to tests/GraphQL/FormTest?

@ryanmitchell

Copy link
Copy Markdown
Contributor Author

Thanks for pointing me in the right direction - I did search for tests I promise! Not sure how I missed them.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Form GraphQL not returning sections

2 participants