1.2.2 • Published 4 years ago
@eucalyptusvc/graphql-logger-middleware v1.2.2
@eucalyptusvc/graphql-logger-middleware
GraphQL Middleware to log requests & responses
Install
With yarn:
yarn add @eucalyptusvc/graphql-logger-middleware
With npm:
npm install @eucalyptusvc/graphql-logger-middleware
Usage
import { schemaConstructor } from '@eucalyptusvc/schema-constructor';
import { loggerMiddleware } from '@eucalyptusvc/graphql-logger-middleware';
const schema = schemaConstructor({
types: allTypes,
datamodelInfo,
prismaClient: prisma,
outputs: {
schema: path.join(__dirname, './generated/schema.graphql'),
typegen: path.join(__dirname, './generated/nexus.ts'),
},
typegenAutoConfig: {
sources: [
{
source: path.join(__dirname, './types.ts'),
alias: 'types',
},
],
contextType: 'types.Context',
},
middlewares: [loggerMiddleware],
});
TODO:
- Add types from graphql-middleware.
- Add tests once the logger is under roots/packages.
Development
- Install dependencies using
yarn install
ornpm install
- Start development server using
yarn watch
1.2.2
4 years ago
1.2.1
4 years ago
1.2.0
4 years ago
1.1.19
5 years ago
1.1.17
5 years ago
1.1.16
5 years ago
1.1.15
5 years ago
1.1.14
5 years ago
1.1.12
5 years ago
1.1.11
5 years ago
1.1.9
5 years ago
1.1.8
5 years ago
1.1.7
5 years ago
1.1.6
5 years ago
1.1.5
5 years ago
1.1.4
5 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago