toriphes / wp-graphql-ninja-forms

Adds Ninja Forms Functionality to WPGraphQL schema
GNU General Public License v3.0
10 stars 2 forks source link

Using date field throws an error #3

Closed Marco-Daniel closed 3 years ago

Marco-Daniel commented 3 years ago

When using the date field I get the following error in wp-graphql:

debugMessage": "Abstract type FormField must resolve to an Object type at runtime for field FormToFormFieldConnection.nodes with value \"instance of WPGraphQL\\NinjaForms\\Model\\Field_Model\", received \"null\". Either the FormField type should provide a \"resolveType\" function or each possible type should provide an \"isTypeOf\" function."

toriphes commented 3 years ago

Hi @Marco-Daniel thanks for the feedback. It appears to be a problem with how wp graphql handles model values.

I just released version 0.1.3 which fixes this bug.

Please let me know if everything works fine.

Marco-Daniel commented 3 years ago

@toriphes Awesome, it's returning data now. Only the required field doesn't respect the settings, it always returns false.

toriphes commented 3 years ago

Maybe it's cache? I can't reproduce it locally

Marco-Daniel commented 3 years ago

I think you're right in that it was a caching issue or something like that. I can't reproduce it anymore. Thanks!