@pothos/plugin-relay
Advanced tools
Comparing version 3.46.0 to 3.46.1
# Change Log | ||
## 3.46.1 | ||
### Patch Changes | ||
- 1ecea46: revert accidental pinning of graphql peer dependency | ||
## 3.46.0 | ||
@@ -4,0 +10,0 @@ |
@@ -10,3 +10,3 @@ import './global-types'; | ||
export * from './utils'; | ||
declare const pluginName: "relay"; | ||
declare const pluginName = "relay"; | ||
export default pluginName; | ||
@@ -13,0 +13,0 @@ export declare class PothosRelayPlugin<Types extends SchemaTypes> extends BasePlugin<Types> { |
@@ -10,3 +10,3 @@ import './global-types.js'; | ||
export * from './utils/index.js'; | ||
declare const pluginName: "relay"; | ||
declare const pluginName = "relay"; | ||
export default pluginName; | ||
@@ -13,0 +13,0 @@ export declare class PothosRelayPlugin<Types extends SchemaTypes> extends BasePlugin<Types> { |
{ | ||
"name": "@pothos/plugin-relay", | ||
"version": "3.46.0", | ||
"version": "3.46.1", | ||
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema", | ||
@@ -45,8 +45,8 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"graphql": "16.8.1", | ||
"graphql": "^16.8.1", | ||
"graphql-subscriptions": "^2.0.0", | ||
"graphql-tag": "^2.12.6", | ||
"@pothos/core": "3.41.0", | ||
"@pothos/plugin-complexity": "3.13.0", | ||
"@pothos/test-utils": "1.4.8" | ||
"@pothos/core": "3.41.2", | ||
"@pothos/plugin-complexity": "3.13.1", | ||
"@pothos/test-utils": "1.4.9" | ||
}, | ||
@@ -58,4 +58,4 @@ "gitHead": "9dfe52f1975f41a111e01bf96a20033a914e2acc", | ||
"build:clean": "git clean -dfX esm lib", | ||
"build:cjs": "swc src -d lib --config-file ../../.swcrc -C module.type=commonjs", | ||
"build:esm": "cp -r dts/* esm/ && swc src -d esm --config-file ../../.swcrc -C module.type=es6 && pnpm esm:extensions", | ||
"build:cjs": "swc src -d lib --config-file ../../.swcrc -C module.type=commonjs --strip-leading-paths", | ||
"build:esm": "cp -r dts/* esm/ && swc src -d esm --config-file ../../.swcrc -C module.type=es6 --strip-leading-paths && pnpm esm:extensions", | ||
"build:dts": "tsc", | ||
@@ -62,0 +62,0 @@ "esm:extensions": "TS_NODE_PROJECT=../../tsconfig.json node -r @swc-node/register ../../scripts/esm-transformer.ts", |
# Relay Plugin | ||
The Relay plugin adds a number of builder methods a helper functions to simplify building a relay | ||
The Relay plugin adds a number of builder methods and helper functions to simplify building a relay | ||
compatible schema. | ||
@@ -36,5 +36,5 @@ | ||
fields are created on `relayMutationFields`, and if they are required. | ||
- `cursorType`: `String` | `ID`. Determines type used for cursor fields. Defaults behavior due to | ||
legacy reasons is `String` for everything except for connection arguments which use `ID`. | ||
Overwriting this default is highly encouraged. | ||
- `cursorType`: String | ID. Determines type used for cursor fields. Default behavior due to legacy | ||
reasons is String for everything except for connection arguments which use ID. Overwriting this | ||
default to String is highly encouraged and will become the default in the next major version. | ||
- `nodeQueryOptions`: Options for the `node` field on the query object, set to false to omit the | ||
@@ -241,4 +241,4 @@ field | ||
}, | ||
] | ||
} | ||
], | ||
}; | ||
}, | ||
@@ -252,3 +252,3 @@ }, | ||
}), | ||
edgesField: {} // optional, allows customizing the edges field on the Connection Object | ||
edgesField: {}, // optional, allows customizing the edges field on the Connection Object | ||
// Other options for connection object can be added here | ||
@@ -263,3 +263,3 @@ }, | ||
}), | ||
nodeField: {} // optional, allows customizing the node field on the Edge Object | ||
nodeField: {}, // optional, allows customizing the node field on the Edge Object | ||
}, | ||
@@ -266,0 +266,0 @@ ), |
@@ -19,3 +19,3 @@ import './global-types'; | ||
const pluginName = 'relay' as const; | ||
const pluginName = 'relay'; | ||
@@ -22,0 +22,0 @@ export default pluginName; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
429639