This library contains All GraphQL queries & mutation in addition to clients. Clients are wrappers around the sdk that contains a very specific operations for each table. You can think of clients as a Facade pattern for each table.
This App is generated using @nrwl/node:application
. Check all targets at project.json
yarn nx run protocol-client:generate-gql
: runsgraphql-codegen
, generating code based on both the GraphQL schema (queries.graphql
) and on the custom resolvers../../apps/protocol-api/src/prisma/resolvers).1
- first add new query to
queries.graphql
file. - run
yarn nx run protocol-api:serve
, to be able to load GraphQl Schema. - run
yarn nx run protocol-client:generate-gql
,protocol-types.ts
will be updated with new modifications
Footnotes
-
Requires GraphQL server to be running, go to
protocol-api:serve
↩ ↩2