2.0.2 • Published 12 months ago

@nestjs-toolkit/graphql-mercurius v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
12 months ago

Descrição

Ferramentas para facilitar o desenvolvimento de aplicações com NestJS, utilizando Mercurius GraphQL.

Instalação

$ yarn add @nestjs-toolkit/graphql-mercurius

Setup

import {Module} from '@nestjs/common';
import {GraphQLModule} from '@nestjs/graphql';
import {MercuriusDriver, MercuriusDriverConfig} from '@nestjs/mercurius';
import {CustomDateResolver, CustomNumberResolver} from '@nestjs-toolkit/graphql-mercurius/resolvers';

@Module({
    imports: [
        GraphQLModule.forRoot<MercuriusDriverConfig>({
            driver: MercuriusDriver,
            graphiql: true,
        }),
    ],
    providers: [CustomDateResolver, CustomNumberResolver],
})
export class AppModule {
}

Teste

# unit tests
$ yarn test

# test coverage
$ yarn test:cov

Licença

MIT

2.0.2

12 months ago

2.0.1

12 months ago

2.0.0

12 months ago