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
I was able to generate the types for the resolvers prop of addMocksToSchema using the typescript-resolvers.
With that i was able to swap the generic IResolvers type with the Resolvers which is specific to my schema.
Now i would like to do the same with the type IMocks, although i don't know where to find or how to generate a type that wraps every schema type generated by the typescript plugin.
Here is my codegen configuration if that can help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, i'm trying to make a type safe testing using the approach explained in Mocking a schema using introspection.
I was able to generate the types for the resolvers prop of addMocksToSchema using the
typescript-resolvers
.With that i was able to swap the generic
IResolvers
type with theResolvers
which is specific to my schema.Now i would like to do the same with the type
IMocks
, although i don't know where to find or how to generate a type that wraps every schema type generated by thetypescript
plugin.Here is my codegen configuration if that can help.
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions