@mate-academy/mate-graphql-serverless
v0.3.72
Published
GraphQL client for mate.academy
Downloads
252
Readme
@mate-academy/mate-graphql-serverless
npm package
Usage
Installation
npm i @mate-academy/mate-graphql-serverless
Use
import { getClient } from '@mate-academy/huntd-graphql-serverless';
const client = getClient(url, token);
const users = client.usersQuery({
a: 'a',
b: 'b',
});
How to add your queries/mutations to this package
- go to huntd repository
- create your UseCases/Resolvers(use ServiceUseCase, makeServiceResolver since you need to verify service user to proceed request)
- add your queries/mutations to
.schema
files - add your queries/mutations to
.queries.serverless
- add your fragments to
.fragments.serverless
(Optional) - run
npm run graphql:generate
to generate codegen file - update package version in package.json
- run
npm publish
to update package - ENJOY!:)