Key value pair JSON object as a field (using GraphQLJSON) #823
tusharchutani
started this conversation in
General
Replies: 1 comment 3 replies
-
As you have "have both allowSyntheticDefaultImports and esModuleInterop enabled", the proper import should look like: import GraphQLJSON from 'graphql-type-json'; |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey,
I have a requirement for a generic type for an input (they are more specifically filters that get passed in. For brevity I have I have omiited out a big chunk of code. Here is the input type.
The filter type looks like this:
Reading other forms on this topic I thought the issue would be the import but I have both
allowSyntheticDefaultImports
andesModuleInterop
enabled. I am importing GraphQLJSON likeimport * as GraphQLJSON from 'graphql-type-json';
I am getting an unhandled promise issue like this
Some help on this topic would be helpful
Beta Was this translation helpful? Give feedback.
All reactions