@pothos/plugin-relay
Advanced tools
Comparing version 3.40.0 to 3.41.0
# Change Log | ||
## 3.41.0 | ||
### Minor Changes | ||
- cd1558a3: Included `idFieldOptions` when creating the Node interface’s ID field. | ||
## 3.40.0 | ||
@@ -4,0 +10,0 @@ |
@@ -84,5 +84,6 @@ import { defaultTypeResolver } from 'graphql'; | ||
fields: (t) => { | ||
var _this_options_relayOptions; | ||
var _this_options_relayOptions, _this_options_relayOptions1; | ||
return { | ||
[(_this_options_relayOptions_idFieldName = (_this_options_relayOptions = this.options.relayOptions) === null || _this_options_relayOptions === void 0 ? void 0 : _this_options_relayOptions.idFieldName) !== null && _this_options_relayOptions_idFieldName !== void 0 ? _this_options_relayOptions_idFieldName : "id"]: t.globalID({ | ||
...(_this_options_relayOptions1 = this.options.relayOptions) === null || _this_options_relayOptions1 === void 0 ? void 0 : _this_options_relayOptions1.idFieldOptions, | ||
nullable: false, | ||
@@ -89,0 +90,0 @@ resolve: (parent) => { |
@@ -136,5 +136,6 @@ "use strict"; | ||
fields: (t)=>{ | ||
var _this_options_relayOptions; | ||
var _this_options_relayOptions, _this_options_relayOptions1; | ||
return { | ||
[(_this_options_relayOptions_idFieldName = (_this_options_relayOptions = this.options.relayOptions) === null || _this_options_relayOptions === void 0 ? void 0 : _this_options_relayOptions.idFieldName) !== null && _this_options_relayOptions_idFieldName !== void 0 ? _this_options_relayOptions_idFieldName : 'id']: t.globalID({ | ||
...(_this_options_relayOptions1 = this.options.relayOptions) === null || _this_options_relayOptions1 === void 0 ? void 0 : _this_options_relayOptions1.idFieldOptions, | ||
nullable: false, | ||
@@ -141,0 +142,0 @@ resolve: (parent)=>{ |
{ | ||
"name": "@pothos/plugin-relay", | ||
"version": "3.40.0", | ||
"version": "3.41.0", | ||
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -142,2 +142,3 @@ import { defaultTypeResolver, GraphQLResolveInfo } from 'graphql'; | ||
[this.options.relayOptions?.idFieldName ?? 'id']: t.globalID({ | ||
...this.options.relayOptions?.idFieldOptions, | ||
nullable: false, | ||
@@ -144,0 +145,0 @@ resolve: (parent) => { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
425211
5460