├── .github ├── lint.yml ├── test.yml └── workflows │ └── test.yml ├── .gitignore ├── .lintstagedrc.json ├── .npmignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── babel-transformer.js ├── commitlint.config.js ├── husky.config.js ├── jest.config.js ├── package.json ├── pnpm-lock.yaml ├── rslib.config.ts ├── src ├── DirectionEnumType.ts ├── NullConnection.ts ├── __tests__ │ ├── NullConnection.spec.ts │ ├── __snapshots__ │ │ ├── NullConnection.spec.ts.snap │ │ └── buildMongoConditionsFromFilters.spec.ts.snap │ ├── buildMongoConditionsFromFilters.spec.ts │ ├── buildSortFromArg.spec.ts │ ├── connectionDefinitions.spec.ts │ ├── documentResolvers.spec.ts │ ├── getObjectId.spec.ts │ └── statusField.spec.ts ├── buildAggregatePipeline.ts ├── buildMongoConditionsFromFilters.ts ├── buildSortFromArg.ts ├── connectionDefinitions.ts ├── constants.ts ├── createLoader.ts ├── documentResolvers.ts ├── getObjectId.ts ├── index.ts ├── mongooseIDResolver.ts ├── nodeDefinitions.ts ├── statusFields.ts ├── typeRegister.ts ├── typeRegistry.ts ├── types.ts ├── utils.ts ├── validateContextUser.ts ├── withConnectionAggregate.ts ├── withConnectionCursor.ts └── withFilter.ts ├── tsconfig.json └── vitest.config.ts /.github/lint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/.github/lint.yml -------------------------------------------------------------------------------- /.github/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/.github/test.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/.gitignore -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/.npmignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/README.md -------------------------------------------------------------------------------- /babel-transformer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/babel-transformer.js -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /husky.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/husky.config.js -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /rslib.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/rslib.config.ts -------------------------------------------------------------------------------- /src/DirectionEnumType.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/DirectionEnumType.ts -------------------------------------------------------------------------------- /src/NullConnection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/NullConnection.ts -------------------------------------------------------------------------------- /src/__tests__/NullConnection.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/NullConnection.spec.ts -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/NullConnection.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/__snapshots__/NullConnection.spec.ts.snap -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/buildMongoConditionsFromFilters.spec.ts.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/__snapshots__/buildMongoConditionsFromFilters.spec.ts.snap -------------------------------------------------------------------------------- /src/__tests__/buildMongoConditionsFromFilters.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/buildMongoConditionsFromFilters.spec.ts -------------------------------------------------------------------------------- /src/__tests__/buildSortFromArg.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/buildSortFromArg.spec.ts -------------------------------------------------------------------------------- /src/__tests__/connectionDefinitions.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/connectionDefinitions.spec.ts -------------------------------------------------------------------------------- /src/__tests__/documentResolvers.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/documentResolvers.spec.ts -------------------------------------------------------------------------------- /src/__tests__/getObjectId.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/getObjectId.spec.ts -------------------------------------------------------------------------------- /src/__tests__/statusField.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/__tests__/statusField.spec.ts -------------------------------------------------------------------------------- /src/buildAggregatePipeline.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/buildAggregatePipeline.ts -------------------------------------------------------------------------------- /src/buildMongoConditionsFromFilters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/buildMongoConditionsFromFilters.ts -------------------------------------------------------------------------------- /src/buildSortFromArg.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/buildSortFromArg.ts -------------------------------------------------------------------------------- /src/connectionDefinitions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/connectionDefinitions.ts -------------------------------------------------------------------------------- /src/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/constants.ts -------------------------------------------------------------------------------- /src/createLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/createLoader.ts -------------------------------------------------------------------------------- /src/documentResolvers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/documentResolvers.ts -------------------------------------------------------------------------------- /src/getObjectId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/getObjectId.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/mongooseIDResolver.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/mongooseIDResolver.ts -------------------------------------------------------------------------------- /src/nodeDefinitions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/nodeDefinitions.ts -------------------------------------------------------------------------------- /src/statusFields.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/statusFields.ts -------------------------------------------------------------------------------- /src/typeRegister.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/typeRegister.ts -------------------------------------------------------------------------------- /src/typeRegistry.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/typeRegistry.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/utils.ts -------------------------------------------------------------------------------- /src/validateContextUser.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/validateContextUser.ts -------------------------------------------------------------------------------- /src/withConnectionAggregate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/withConnectionAggregate.ts -------------------------------------------------------------------------------- /src/withConnectionCursor.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/withConnectionCursor.ts -------------------------------------------------------------------------------- /src/withFilter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/src/withFilter.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/woovibr/graphql-mongo-helpers/HEAD/vitest.config.ts --------------------------------------------------------------------------------