Skip to content

Latest commit

 

History

History
56 lines (36 loc) · 1.45 KB

README.md

File metadata and controls

56 lines (36 loc) · 1.45 KB

The Graph Client / Transforms

This examples indicates the use of the transforms property.

The graph client has some built-in transforms:

Block Tracking Auto Pagination

GraphQL Mesh also features more transforms which you can read about here.

The example here is using the following tools/concepts:

Getting Started

To run this example, make sure to install the dependencies in the root of the monorepo, and then run this example:

# In the root directory
$ yarn install
$ yarn build
$ cd examples/transforms/
$ yarn start

Building

You can also build the client sdk by running: yarn build.

GraphQL Mesh Transforms Usage

To run any transforms on your project from graphql mesh you will need to install the transforms respective dependency. For eg. in this project the prefix transform is used which requires the @graphql-mesh/transform-prefix dependency.

Install it by running:

With npm

npm i -D @graphql-mesh/transform-prefix

With yarn

yarn add -D @graphql-mesh/transform-prefix

With pnpm

pnpm add -D @graphql-mesh/transform-prefix