├── .circleci └── config.yml ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .prettierrc ├── .vscode ├── launch.json ├── settings.json └── tasks.json ├── README.md ├── docker-compose.yml ├── examples └── basics │ ├── generated │ ├── nexus-typegen.ts │ ├── nexus-typeorm-typegen.ts │ └── schema.graphql │ ├── package.json │ ├── server.ts │ ├── tncc.config.js │ └── tsconfig.json ├── jest.config.js ├── package.json ├── src ├── args │ ├── arg-order-by.ts │ ├── arg-where.ts │ └── index.ts ├── context.ts ├── decorators.ts ├── entity-type-def-manager.ts ├── index.ts ├── nexus │ ├── crud-field-output-method.ts │ ├── crud-output-property.ts │ ├── crud │ │ ├── create-one-field.ts │ │ ├── find-many-field.ts │ │ ├── find-one-field.ts │ │ ├── update-many-field.ts │ │ └── update-one-field.ts │ ├── entity-field-output-method.ts │ ├── entity-fields-output-method.ts │ ├── entity-output-property.ts │ ├── entity-type.ts │ └── naming-strategy.ts ├── plugin.ts ├── queries-counter-logger.ts ├── query-builder.ts ├── type.ts ├── typegen.ts └── util.ts ├── test ├── __generated__ │ ├── nexus-typegen.ts │ ├── nexus-typeorm-typegen.ts │ └── schema.graphql ├── __snapshots__ │ ├── schema.test.ts.snap │ └── typegen.test.ts.snap ├── arg-order.test.ts ├── arg-where.test.ts ├── auto-join.test.ts ├── complex.test.ts ├── create-one-field.test.ts ├── entities │ ├── category.ts │ ├── email.ts │ ├── index.ts │ ├── post.ts │ ├── user-follows.ts │ ├── user-likes-post.ts │ ├── user-profile.ts │ └── user.ts ├── errors.test.ts ├── find-many-field.test.ts ├── find-one-field.test.ts ├── relations.test.ts ├── schema.test.ts ├── typegen.test.ts ├── update-many.test.ts ├── update-one.test.ts └── utils │ ├── database-test-utils.ts │ ├── graphql-test-utils.ts │ └── index.ts ├── tsconfig.build.json ├── tsconfig.json ├── tsconfig.test.json └── yarn.lock /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.eslintignore -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.prettierrc -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.vscode/launch.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/.vscode/tasks.json -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /examples/basics/generated/nexus-typegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/examples/basics/generated/nexus-typegen.ts -------------------------------------------------------------------------------- /examples/basics/generated/nexus-typeorm-typegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/examples/basics/generated/nexus-typeorm-typegen.ts -------------------------------------------------------------------------------- /examples/basics/generated/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/examples/basics/generated/schema.graphql -------------------------------------------------------------------------------- /examples/basics/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/examples/basics/package.json -------------------------------------------------------------------------------- /examples/basics/server.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/examples/basics/server.ts -------------------------------------------------------------------------------- /examples/basics/tncc.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/examples/basics/tncc.config.js -------------------------------------------------------------------------------- /examples/basics/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/examples/basics/tsconfig.json -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/package.json -------------------------------------------------------------------------------- /src/args/arg-order-by.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/args/arg-order-by.ts -------------------------------------------------------------------------------- /src/args/arg-where.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/args/arg-where.ts -------------------------------------------------------------------------------- /src/args/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/args/index.ts -------------------------------------------------------------------------------- /src/context.ts: -------------------------------------------------------------------------------- 1 | export interface ResolverContext { 2 | ignoreErrors?: boolean 3 | } 4 | -------------------------------------------------------------------------------- /src/decorators.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/decorators.ts -------------------------------------------------------------------------------- /src/entity-type-def-manager.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/entity-type-def-manager.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/nexus/crud-field-output-method.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/crud-field-output-method.ts -------------------------------------------------------------------------------- /src/nexus/crud-output-property.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/crud-output-property.ts -------------------------------------------------------------------------------- /src/nexus/crud/create-one-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/crud/create-one-field.ts -------------------------------------------------------------------------------- /src/nexus/crud/find-many-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/crud/find-many-field.ts -------------------------------------------------------------------------------- /src/nexus/crud/find-one-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/crud/find-one-field.ts -------------------------------------------------------------------------------- /src/nexus/crud/update-many-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/crud/update-many-field.ts -------------------------------------------------------------------------------- /src/nexus/crud/update-one-field.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/crud/update-one-field.ts -------------------------------------------------------------------------------- /src/nexus/entity-field-output-method.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/entity-field-output-method.ts -------------------------------------------------------------------------------- /src/nexus/entity-fields-output-method.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/entity-fields-output-method.ts -------------------------------------------------------------------------------- /src/nexus/entity-output-property.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/entity-output-property.ts -------------------------------------------------------------------------------- /src/nexus/entity-type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/entity-type.ts -------------------------------------------------------------------------------- /src/nexus/naming-strategy.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/nexus/naming-strategy.ts -------------------------------------------------------------------------------- /src/plugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/plugin.ts -------------------------------------------------------------------------------- /src/queries-counter-logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/queries-counter-logger.ts -------------------------------------------------------------------------------- /src/query-builder.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/query-builder.ts -------------------------------------------------------------------------------- /src/type.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/type.ts -------------------------------------------------------------------------------- /src/typegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/typegen.ts -------------------------------------------------------------------------------- /src/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/src/util.ts -------------------------------------------------------------------------------- /test/__generated__/nexus-typegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/__generated__/nexus-typegen.ts -------------------------------------------------------------------------------- /test/__generated__/nexus-typeorm-typegen.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/__generated__/nexus-typeorm-typegen.ts -------------------------------------------------------------------------------- /test/__generated__/schema.graphql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/__generated__/schema.graphql -------------------------------------------------------------------------------- /test/__snapshots__/schema.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/__snapshots__/schema.test.ts.snap -------------------------------------------------------------------------------- /test/__snapshots__/typegen.test.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/__snapshots__/typegen.test.ts.snap -------------------------------------------------------------------------------- /test/arg-order.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/arg-order.test.ts -------------------------------------------------------------------------------- /test/arg-where.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/arg-where.test.ts -------------------------------------------------------------------------------- /test/auto-join.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/auto-join.test.ts -------------------------------------------------------------------------------- /test/complex.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/complex.test.ts -------------------------------------------------------------------------------- /test/create-one-field.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/create-one-field.test.ts -------------------------------------------------------------------------------- /test/entities/category.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/category.ts -------------------------------------------------------------------------------- /test/entities/email.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/email.ts -------------------------------------------------------------------------------- /test/entities/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/index.ts -------------------------------------------------------------------------------- /test/entities/post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/post.ts -------------------------------------------------------------------------------- /test/entities/user-follows.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/user-follows.ts -------------------------------------------------------------------------------- /test/entities/user-likes-post.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/user-likes-post.ts -------------------------------------------------------------------------------- /test/entities/user-profile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/user-profile.ts -------------------------------------------------------------------------------- /test/entities/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/entities/user.ts -------------------------------------------------------------------------------- /test/errors.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/errors.test.ts -------------------------------------------------------------------------------- /test/find-many-field.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/find-many-field.test.ts -------------------------------------------------------------------------------- /test/find-one-field.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/find-one-field.test.ts -------------------------------------------------------------------------------- /test/relations.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/relations.test.ts -------------------------------------------------------------------------------- /test/schema.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/schema.test.ts -------------------------------------------------------------------------------- /test/typegen.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/typegen.test.ts -------------------------------------------------------------------------------- /test/update-many.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/update-many.test.ts -------------------------------------------------------------------------------- /test/update-one.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/update-one.test.ts -------------------------------------------------------------------------------- /test/utils/database-test-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/utils/database-test-utils.ts -------------------------------------------------------------------------------- /test/utils/graphql-test-utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/utils/graphql-test-utils.ts -------------------------------------------------------------------------------- /test/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/test/utils/index.ts -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/tsconfig.build.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/tsconfig.json -------------------------------------------------------------------------------- /tsconfig.test.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/tsconfig.test.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/vinpac/nexus-typeorm-plugin/HEAD/yarn.lock --------------------------------------------------------------------------------