AxeWP / wp-graphql-gravity-forms

GraphQL API for interacting with Gravity Forms.
GNU General Public License v3.0
165 stars 29 forks source link

feat!: implement FormField model, dataloader, and ConnectionResolver #416

Closed justlevine closed 6 months ago

justlevine commented 6 months ago

What

This PR:

How

Testing Instructions

Additional Info

...
'resolve' => static function( $source, array $args, AppContext $context, ResolveInfo $info ) {
-   if ( $source instance of GF_Field_Text ) { }
+   // use the underlying $source->gfEntry
+   if ( $source->gfEntry instanceof GF_FieldText ) {}
  ...
},

Checklist: