├── .github └── workflows │ └── nodejs.yml ├── .gitignore ├── .vscode └── tasks.json ├── LICENSE.md ├── README.md ├── example ├── .gitignore ├── README.md ├── migrations │ ├── 0001_database.migration │ ├── 0002_users.migration │ ├── 0003_posts.migration │ └── 0004_graph.migration ├── package-lock.json ├── package.json └── server.js ├── jest.config.js ├── jest.integration.config.js ├── package.json ├── src ├── __tests__ │ ├── config │ │ └── setup.ts │ ├── fixtures │ │ └── typeDefs.ts │ └── queryTranslation.test.ts ├── buildQuery.ts ├── builderInstanceCreators.ts ├── builders │ ├── aql.ts │ ├── aqlDocument.ts │ ├── aqlEdge.ts │ ├── aqlEdgeNode.ts │ ├── aqlId.ts │ ├── aqlKey.ts │ ├── aqlNode.ts │ ├── aqlRelayConnection.ts │ ├── aqlRelayEdges.ts │ ├── aqlRelayNode.ts │ ├── aqlRelayPageInfo.ts │ ├── aqlSubquery.ts │ └── index.ts ├── constants.ts ├── errors.ts ├── executeQuery.ts ├── extractQueries.ts ├── index.ts ├── logger.ts ├── resolver.ts ├── runCustomQuery.ts ├── runQuery.ts ├── typeDefs.ts ├── types.ts └── utils │ ├── __tests__ │ └── plugins.test.ts │ ├── aql.ts │ ├── directives.ts │ ├── graphql.ts │ ├── plugins.ts │ ├── strings.ts │ └── variables.ts ├── tsconfig.json └── types └── index.d.ts /.github/workflows/nodejs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/.github/workflows/nodejs.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/README.md -------------------------------------------------------------------------------- /example/.gitignore: -------------------------------------------------------------------------------- 1 | config.yaml 2 | -------------------------------------------------------------------------------- /example/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/README.md -------------------------------------------------------------------------------- /example/migrations/0001_database.migration: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/migrations/0001_database.migration -------------------------------------------------------------------------------- /example/migrations/0002_users.migration: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/migrations/0002_users.migration -------------------------------------------------------------------------------- /example/migrations/0003_posts.migration: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/migrations/0003_posts.migration -------------------------------------------------------------------------------- /example/migrations/0004_graph.migration: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/migrations/0004_graph.migration -------------------------------------------------------------------------------- /example/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/package-lock.json -------------------------------------------------------------------------------- /example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/package.json -------------------------------------------------------------------------------- /example/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/example/server.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/jest.config.js -------------------------------------------------------------------------------- /jest.integration.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/jest.integration.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/package.json -------------------------------------------------------------------------------- /src/__tests__/config/setup.ts: -------------------------------------------------------------------------------- 1 | (global as any)['__DEV__'] = true; 2 | -------------------------------------------------------------------------------- /src/__tests__/fixtures/typeDefs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/__tests__/fixtures/typeDefs.ts -------------------------------------------------------------------------------- /src/__tests__/queryTranslation.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/__tests__/queryTranslation.test.ts -------------------------------------------------------------------------------- /src/buildQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/buildQuery.ts -------------------------------------------------------------------------------- /src/builderInstanceCreators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builderInstanceCreators.ts -------------------------------------------------------------------------------- /src/builders/aql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aql.ts -------------------------------------------------------------------------------- /src/builders/aqlDocument.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlDocument.ts -------------------------------------------------------------------------------- /src/builders/aqlEdge.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlEdge.ts -------------------------------------------------------------------------------- /src/builders/aqlEdgeNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlEdgeNode.ts -------------------------------------------------------------------------------- /src/builders/aqlId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlId.ts -------------------------------------------------------------------------------- /src/builders/aqlKey.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlKey.ts -------------------------------------------------------------------------------- /src/builders/aqlNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlNode.ts -------------------------------------------------------------------------------- /src/builders/aqlRelayConnection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlRelayConnection.ts -------------------------------------------------------------------------------- /src/builders/aqlRelayEdges.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlRelayEdges.ts -------------------------------------------------------------------------------- /src/builders/aqlRelayNode.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlRelayNode.ts -------------------------------------------------------------------------------- /src/builders/aqlRelayPageInfo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlRelayPageInfo.ts -------------------------------------------------------------------------------- /src/builders/aqlSubquery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/aqlSubquery.ts -------------------------------------------------------------------------------- /src/builders/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/builders/index.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/errors.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/errors.ts -------------------------------------------------------------------------------- /src/executeQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/executeQuery.ts -------------------------------------------------------------------------------- /src/extractQueries.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/extractQueries.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/logger.ts -------------------------------------------------------------------------------- /src/resolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/resolver.ts -------------------------------------------------------------------------------- /src/runCustomQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/runCustomQuery.ts -------------------------------------------------------------------------------- /src/runQuery.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/runQuery.ts -------------------------------------------------------------------------------- /src/typeDefs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/typeDefs.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/__tests__/plugins.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/utils/__tests__/plugins.test.ts -------------------------------------------------------------------------------- /src/utils/aql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/utils/aql.ts -------------------------------------------------------------------------------- /src/utils/directives.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/utils/directives.ts -------------------------------------------------------------------------------- /src/utils/graphql.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/utils/graphql.ts -------------------------------------------------------------------------------- /src/utils/plugins.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/utils/plugins.ts -------------------------------------------------------------------------------- /src/utils/strings.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/utils/strings.ts -------------------------------------------------------------------------------- /src/utils/variables.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/src/utils/variables.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/a-type/graphql-arangodb/HEAD/tsconfig.json -------------------------------------------------------------------------------- /types/index.d.ts: -------------------------------------------------------------------------------- 1 | declare var __DEV__: boolean; 2 | --------------------------------------------------------------------------------