-
Notifications
You must be signed in to change notification settings - Fork 25
[Productive] Write code with types after defining them in graphql schema first
veeramarni edited this page Jul 31, 2020
·
7 revisions
-
Update the Graphql Schema first with required methods.
-
Generate Graphql Types by running
npm run genreateGraphql
-
The generated code usually added to
<@sample-stack>/core
package and this package should be imported to use it. In order to auto build when the files changes in the package, make surewatch
is run on that package. -
Write
resolvers
for theMutations | Query | Subscription
that are defined in the graphql schema.
The following video shows in-action https://youtu.be/F1UZdcpjx3w