Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using date field throws an error #3

Closed
Marco-Daniel opened this issue Jun 16, 2021 · 4 comments
Closed

Using date field throws an error #3

Marco-Daniel opened this issue Jun 16, 2021 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@Marco-Daniel
Copy link
Contributor

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 toriphes added the bug Something isn't working label Jun 18, 2021
@toriphes
Copy link
Owner

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.

@toriphes toriphes self-assigned this Jun 18, 2021
@Marco-Daniel
Copy link
Contributor Author

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

@toriphes
Copy link
Owner

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

@Marco-Daniel
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants