├── .autod.conf.js ├── .eslintignore ├── .eslintrc ├── .github └── PULL_REQUEST_TEMPLATE.md ├── .gitignore ├── .travis.yml ├── History.md ├── LICENSE ├── README.md ├── agent.js ├── app.js ├── app ├── extend │ └── context.js ├── middleware │ └── graphql.js └── service │ └── graphql.js ├── appveyor.yml ├── config └── config.default.js ├── index.d.ts ├── lib ├── loader.js └── utils.js ├── package.json └── test ├── app ├── graphiql │ ├── closeGraphiql.test.js │ └── graphiql.test.js ├── middleware │ └── graphql.test.js └── service │ └── graphql.test.js └── fixtures └── apps ├── graphiql-app ├── app │ ├── graphql │ │ ├── mutation │ │ │ └── schema.graphql │ │ ├── query │ │ │ └── schema.graphql │ │ └── token │ │ │ ├── connector.js │ │ │ ├── resolver.js │ │ │ └── schema.graphql │ └── service │ │ └── user.js ├── config │ └── config.unittest.js └── package.json └── graphql-app ├── app ├── graphql │ ├── directives │ │ ├── directive.js │ │ └── schema.graphql │ ├── project │ │ ├── resolver.js │ │ └── schema.graphql │ ├── schemaDirectives │ │ ├── schema.graphql │ │ └── schemaDirective.js │ └── user │ │ ├── connector.js │ │ ├── resolver.js │ │ └── schema.graphql ├── model │ └── user.js ├── router.js └── service │ └── user.js ├── config └── config.unittest.js └── package.json /.autod.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/.autod.conf.js -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-egg" 3 | } 4 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/.travis.yml -------------------------------------------------------------------------------- /History.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/History.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/README.md -------------------------------------------------------------------------------- /agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/agent.js -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = app => { 4 | require('./lib/loader')(app); 5 | }; 6 | -------------------------------------------------------------------------------- /app/extend/context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/app/extend/context.js -------------------------------------------------------------------------------- /app/middleware/graphql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/app/middleware/graphql.js -------------------------------------------------------------------------------- /app/service/graphql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/app/service/graphql.js -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/appveyor.yml -------------------------------------------------------------------------------- /config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/config/config.default.js -------------------------------------------------------------------------------- /index.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/index.d.ts -------------------------------------------------------------------------------- /lib/loader.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/lib/loader.js -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/lib/utils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/package.json -------------------------------------------------------------------------------- /test/app/graphiql/closeGraphiql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/app/graphiql/closeGraphiql.test.js -------------------------------------------------------------------------------- /test/app/graphiql/graphiql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/app/graphiql/graphiql.test.js -------------------------------------------------------------------------------- /test/app/middleware/graphql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/app/middleware/graphql.test.js -------------------------------------------------------------------------------- /test/app/service/graphql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/app/service/graphql.test.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/mutation/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphiql-app/app/graphql/mutation/schema.graphql -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/query/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphiql-app/app/graphql/query/schema.graphql -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/token/connector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphiql-app/app/graphql/token/connector.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/token/resolver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphiql-app/app/graphql/token/resolver.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/token/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphiql-app/app/graphql/token/schema.graphql -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphiql-app/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/config/config.unittest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphiql-app/config/config.unittest.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "graphiql-app" 3 | } -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/directives/directive.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/graphql/directives/directive.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/directives/schema.graphql: -------------------------------------------------------------------------------- 1 | directive @upper on FIELD_DEFINITION 2 | -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/project/resolver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/graphql/project/resolver.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/project/schema.graphql: -------------------------------------------------------------------------------- 1 | 2 | type Project { 3 | name: String! 4 | } 5 | -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/schemaDirectives/schema.graphql: -------------------------------------------------------------------------------- 1 | directive @lowerCase on FIELD_DEFINITION 2 | -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/schemaDirectives/schemaDirective.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/graphql/schemaDirectives/schemaDirective.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/user/connector.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/graphql/user/connector.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/user/resolver.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/graphql/user/resolver.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/user/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/graphql/user/schema.graphql -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/config/config.unittest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Carrotzpc/egg-graphql/HEAD/test/fixtures/apps/graphql-app/config/config.unittest.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grapgql-app" 3 | } --------------------------------------------------------------------------------