Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Types generation / provider for server side? #340

Open
AlexeyRaga opened this issue Jul 2, 2021 · 1 comment
Open

Question: Types generation / provider for server side? #340

AlexeyRaga opened this issue Jul 2, 2021 · 1 comment

Comments

@AlexeyRaga
Copy link

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...

@jberzy
Copy link
Contributor

jberzy commented Jul 7, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants