FSharp.Data.GraphQL icon indicating copy to clipboard operation
FSharp.Data.GraphQL copied to clipboard

Question: Types generation / provider for server side?

Open AlexeyRaga opened this issue 4 years ago • 1 comments

Question

Is there a way to "generate" types for the server-side GraphQL API?

At a glance, it looks like types and their corresponding Define.Object<_> can be autogenerated.

Or do I look at the problem from the wrong angle? My intuition here is to be able to be "schema-first" for both server and client sides...

AlexeyRaga avatar Jul 02 '21 02:07 AlexeyRaga

We've thought about this, but we're unsure of the utility of the schema-first approach with type providers. This is primarily because the user still needs to define the resolver for each field. If you have any ideas about an API, we're open to suggestions.

Thanks

jberzy avatar Jul 07 '21 17:07 jberzy