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
{{ message }}
Repository navigation
Nodejs Projects: support for code-first schemas #3295
It's worth looking to see if any existing framework can be leveraged (similar to Python+Strawberry) rather than a custom thing like what was needed in Go.
Also need to think about plain JS. Since it lacks types it's less clear what form this could/should take (maybe it just isn't supported for now, schema.graphql can remain a fallback for these cases, or perhaps schema strings could be embedded in code rather than a separate file, etc.).
Activity
sipsma commentedon Oct 13, 2022
I did some very preliminary experimentation with this the other day (not functional at all, just half-written playing around code): sipsma@5ba6adc
A few notes for whenever we come back to this:
@decorators, which isn't the absolute end of the world but nice to avoid if possible.Take above with grain of salt.
Also, that foray made me realize that another option for JS would be to use
@decoratorsand only save the real low-boilerplate magic for typescript.dolanor commentedon Dec 13, 2022
It has been done with Go codegen package.
[-]Typescript: support for code-first schemas[/-][+]Nodejs Extensions: support for code-first schemas[/+]sipsma commentedon Dec 13, 2022
This issue is meant for extensions, specifically the ability to take source code and derive a schema from it. Clarified the title now, reopening
[-]Nodejs Extensions: support for code-first schemas[/-][+]Nodejs Projects: support for code-first schemas[/+]sipsma commentedon Apr 2, 2024
Modules implementation has support for typescript