1.2.2 • Published 5 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
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.19
6 years ago
1.1.17
6 years ago
1.1.16
6 years ago
1.1.15
6 years ago
1.1.14
6 years ago
1.1.12
6 years ago
1.1.11
6 years ago
1.1.9
6 years ago
1.1.8
6 years ago
1.1.7
6 years ago
1.1.6
6 years ago
1.1.5
6 years ago
1.1.4
6 years ago
1.1.3
6 years ago
1.1.2
6 years ago
1.1.1
6 years ago
1.1.0
6 years ago
1.0.13
6 years ago
1.0.12
6 years ago
1.0.11
6 years ago
1.0.10
6 years ago
1.0.9
6 years ago
1.0.8
6 years ago
1.0.7
6 years ago
1.0.6
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago