├── .autod.conf.js ├── .eslintignore ├── .eslintrc ├── .gitignore ├── .travis.yml ├── LICENSE ├── README.md ├── agent.js ├── app.js ├── app ├── extend │ └── context.js ├── middleware │ └── graphql.js └── service │ └── graphql.js ├── appveyor.yml ├── config └── config.default.js ├── lib ├── index.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.graphql │ │ ├── query.graphql │ │ └── token.js │ └── service │ │ ├── token.js │ │ └── user.js ├── config │ └── config.unittest.js └── package.json └── graphql-app ├── app ├── graphql │ ├── directiveResolvers.js │ ├── project.js │ ├── schemaDirectives.js │ └── user.js ├── model │ └── user.js ├── router.js └── service │ └── user.js ├── config └── config.unittest.js └── package.json /.autod.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/.autod.conf.js -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | coverage 2 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "eslint-config-egg" 3 | } 4 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/README.md -------------------------------------------------------------------------------- /agent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/agent.js -------------------------------------------------------------------------------- /app.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = app => { 4 | require('./lib')(app); 5 | }; 6 | -------------------------------------------------------------------------------- /app/extend/context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/app/extend/context.js -------------------------------------------------------------------------------- /app/middleware/graphql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/app/middleware/graphql.js -------------------------------------------------------------------------------- /app/service/graphql.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/app/service/graphql.js -------------------------------------------------------------------------------- /appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/appveyor.yml -------------------------------------------------------------------------------- /config/config.default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/config/config.default.js -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/lib/utils.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/package.json -------------------------------------------------------------------------------- /test/app/graphiql/closeGraphiql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/app/graphiql/closeGraphiql.test.js -------------------------------------------------------------------------------- /test/app/graphiql/graphiql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/app/graphiql/graphiql.test.js -------------------------------------------------------------------------------- /test/app/middleware/graphql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/app/middleware/graphql.test.js -------------------------------------------------------------------------------- /test/app/service/graphql.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/app/service/graphql.test.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/mutation.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphiql-app/app/graphql/mutation.graphql -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/query.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphiql-app/app/graphql/query.graphql -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/graphql/token.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphiql-app/app/graphql/token.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/service/token.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphiql-app/app/service/token.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphiql-app/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphiql-app/config/config.unittest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/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/directiveResolvers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/app/graphql/directiveResolvers.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/project.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/app/graphql/project.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/schemaDirectives.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/app/graphql/schemaDirectives.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/graphql/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/app/graphql/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/model/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/app/model/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/router.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/app/router.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/app/service/user.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/app/service/user.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/config/config.unittest.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MinJieLiu/egg-graphql-apollo/HEAD/test/fixtures/apps/graphql-app/config/config.unittest.js -------------------------------------------------------------------------------- /test/fixtures/apps/graphql-app/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "grapgql-app" 3 | } --------------------------------------------------------------------------------