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

Cannot represent non-object value #329

Open
RedDevil91 opened this issue May 26, 2021 · 0 comments
Open

Cannot represent non-object value #329

RedDevil91 opened this issue May 26, 2021 · 0 comments

Comments

@RedDevil91
Copy link

I wanted to create a json object field for graphql but when I filled the db with test data to check the new field the following error appeared:
"JSONObject cannot represent non-object value: {\"test\":1,\"something\":\"2\"}"

For type definition I used a graphql scalar:
scalar JSONObject

My resolver:
JSONObject: GraphQLJSONObject

What can be wrong?

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

No branches or pull requests

1 participant