FSharp.Data.GraphQL
FSharp.Data.GraphQL copied to clipboard
Question: Types generation / provider for server side?
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...
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