Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pothos/plugin-relay

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/plugin-relay - npm Package Compare versions

Comparing version 3.40.0 to 3.41.0

6

CHANGELOG.md
# 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 @@

3

esm/schema-builder.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc