egg-typedgraphql

[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][codecov-image]][codecov-url] [![David deps][david-image]][david-url] [![Known Vulnerabilities][snyk-image]][snyk-url] [![npm download][download-image]][down

Usage no npm install needed!

<script type="module">
  import eggTypedgraphql from 'https://cdn.skypack.dev/egg-typedgraphql';
</script>

README

egg-typedgraphql

NPM version build status Test coverage David deps Known Vulnerabilities npm download

type-graphql for eggjs

Install

$ npm i egg-typedgraphql --save

Usage

// {app_root}/config/plugin.js
exports.typedgraphql = {
  enable: true,
  package: 'egg-typedgraphql',
};

Configuration(TBD)

// {app_root}/config/config.default.js
exports.typedgraphql = {
};

see config/config.default.js for more detail.

File layout

see test/fixtures/apps/type-graphql-test

├── app
│   └── graphql
│       ├── resolver
│       │   └── test.ts
│       └── schema
│           └── Test.ts
├── config
│   └── config.default.js
└── graphql-schema.gql

License

MIT