@graphql-codegen/typescript-mongodb 2.2.1 → 2.3.1-alpha-6cdbcf02e.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config.d.ts CHANGED
@@ -64,12 +64,12 @@ export interface TypeScriptMongoPluginConfig extends RawConfig {
64
64
  * @exampleMarkdown
65
65
  * ```yml
66
66
  * generates:
67
- * path/to/file.ts:
68
- * plugins:
69
- * - typescript
70
- * - typescript-mongodb
71
- * config:
72
- * avoidOptionals: true
67
+ * path/to/file.ts:
68
+ * plugins:
69
+ * - typescript
70
+ * - typescript-mongodb
71
+ * config:
72
+ * avoidOptionals: true
73
73
  * ```
74
74
  */
75
75
  avoidOptionals?: boolean;
package/index.js CHANGED
@@ -55,7 +55,7 @@ var Directives;
55
55
 
56
56
  function resolveObjectId(pointer) {
57
57
  if (!pointer) {
58
- return { identifier: 'ObjectID', module: 'mongodb' };
58
+ return { identifier: 'ObjectId', module: 'mongodb' };
59
59
  }
60
60
  if (pointer.includes('#')) {
61
61
  const [path, module] = pointer.split('#');
package/index.mjs CHANGED
@@ -49,7 +49,7 @@ var Directives;
49
49
 
50
50
  function resolveObjectId(pointer) {
51
51
  if (!pointer) {
52
- return { identifier: 'ObjectID', module: 'mongodb' };
52
+ return { identifier: 'ObjectId', module: 'mongodb' };
53
53
  }
54
54
  if (pointer.includes('#')) {
55
55
  const [path, module] = pointer.split('#');
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-mongodb",
3
- "version": "2.2.1",
3
+ "version": "2.3.1-alpha-6cdbcf02e.0",
4
4
  "description": "GraphQL Code Generator plugin for generting a ready-to-use ORM types for MongoDB",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
7
7
  "graphql-tag": "^2.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-codegen/plugin-helpers": "^2.3.0",
11
- "@graphql-codegen/typescript": "^2.4.1",
12
- "@graphql-codegen/visitor-plugin-common": "2.5.1",
10
+ "@graphql-codegen/plugin-helpers": "2.3.3-alpha-6cdbcf02e.0",
11
+ "@graphql-codegen/typescript": "2.4.3-alpha-6cdbcf02e.0",
12
+ "@graphql-codegen/visitor-plugin-common": "2.5.3-alpha-6cdbcf02e.0",
13
13
  "@graphql-tools/utils": "^8.1.1",
14
14
  "auto-bind": "~4.0.0",
15
15
  "lodash": "~4.17.0",
@@ -28,6 +28,7 @@
28
28
  "definition": "index.d.ts"
29
29
  },
30
30
  "exports": {
31
+ "./package.json": "./package.json",
31
32
  ".": {
32
33
  "require": "./index.js",
33
34
  "import": "./index.mjs"