You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additional Info: I figure out why this happens.
I used EnumType from other package. (Core-Lib imports json-to-graphql-query and project itself import EnumType, so "instanceof" does not match.
Fix it by using: export {EnumType as EnumType} from 'json-to-graphql-query';
in my index.js in Core-Lib.
I'm importing import { EnumType } from 'json-to-graphql-query';
in one file, and import { jsonToGraphQLQuery } from 'json-to-graphql-query';
in another one.
Hey @dupski,
thank you for this lib. It's exactly what i was looking for. But now i'm stuck by passing EnumTypes in Objects as Parameter.
results in:
mutation { create: createPost (initial: {title: "XYZ", status: {value: "OPEN"}}) { id }}
expected:
mutation { create: createPost (initial: {title: "XYZ", status: OPEN}) { id }}
Can you help here? Thanks :)
The text was updated successfully, but these errors were encountered: