8000 code first graphql · Issue #59 · oors/oors · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

code first graphql # 8000 59

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

Open
viczam opened this issue Feb 1, 2019 · 1 comment
Open

code first graphql #59

viczam opened this issue Feb 1, 2019 · 1 comment

Comments

@viczam
Copy link
Collaborator
viczam commented Feb 1, 2019

While schema-first GraphQL development works great with oors, it worths checking into code-first development as an alternative.

Here's what makes schema-first dev great in oors:

  • you can have as many modules as you need, as each module can have as many .graphql schema files as it makes sense
  • resolvers are autoloaded from a tree structure matching file system
  • boilerplate code is avoided for CRUD operations thanks to CRUD resolvers; these can be reused even for non-CRUD operations.
  • parsing arguments when building queries (filtering + pagination) is handled by GQLQueryParser, so, once again, boilerplate code is avoided.
@viczam
Copy link
Collaborator Author
viczam commented Mar 9, 2019

#62

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

No branches or pull requests

1 participant
0