This examples integrates The Graph Client with NodeJS/TypeScript usage.
The example here is using the following tools/concepts:
- NodeJS + TypeScript
- The Graph Client CLI for generating artifacts
- Client-side Compostion (more than 1 source)
- GraphQL Codegen for improved TypeScript support with GraphQL and
TypedDocumentNode
To run this example, make sure to install the dependencies in the root of the monorepo, build the client locally, and then run this example:
# In the root directory
$ yarn install
$ yarn build
$ cd examples/node
$ yarn build-client
$ yarn start
You can also run The Graph Client DevTools by running: yarn graphiql
.