@pothos/plugin-relay
Advanced tools
Comparing version 3.28.7 to 3.29.0
# Change Log | ||
## 3.29.0 | ||
### Minor Changes | ||
- cd1c0502: Add support for nested lists | ||
- 99bc6574: Add initial support for reusable prisma connections | ||
## 3.28.7 | ||
@@ -4,0 +11,0 @@ |
@@ -73,3 +73,5 @@ import { FieldKind, FieldNullability, FieldOptionsFromKind, FieldRef, FieldRequiredness, InputFieldMap, InputFieldRef, InputFieldsFromShape, InputShapeFromFields, InputShapeFromTypeParam, inputShapeKey, InterfaceParam, NormalizeArgs, ObjectFieldsShape, ObjectFieldThunk, ObjectParam, OutputShape, OutputType, ParentShape, Resolver, SchemaTypes, ShapeFromTypeParam } from '@pothos/core'; | ||
nodeList: <Args extends InputFieldMap, ResolveShape>(options: NodeListFieldOptions<Types, ParentShape, Args, ResolveShape, Kind>) => FieldRef<unknown[]>; | ||
connection: <Type extends OutputType<Types>, Args extends InputFieldMap, Nullable extends boolean, ResolveReturnShape, EdgeNullability extends FieldNullability<[unknown]> = Types['DefaultEdgesNullability'], NodeNullability extends boolean = Types['DefaultNodeNullability']>(options: ConnectionFieldOptions<Types, ParentShape, Type, Nullable, EdgeNullability, NodeNullability, Args, ResolveReturnShape> & Omit<FieldOptionsFromKind<Types, ParentShape, Type, Nullable, (InputFieldMap extends Args ? {} : Args) & InputFieldsFromShape<DefaultConnectionArguments>, Kind, ParentShape, ResolveReturnShape>, 'args' | 'resolve' | 'type'>, ...args: NormalizeArgs<[ | ||
connection: <Type extends OutputType<Types>, Args extends InputFieldMap, Nullable extends boolean, ResolveShape, ResolveReturnShape, EdgeNullability extends FieldNullability<[unknown]> = Types['DefaultEdgesNullability'], NodeNullability extends boolean = Types['DefaultNodeNullability']>(options: FieldOptionsFromKind<Types, ParentShape, Type, Nullable, (InputFieldMap extends Args ? {} : Args) & InputFieldsFromShape<DefaultConnectionArguments>, Kind, ResolveShape, ResolveReturnShape> extends infer FieldOptions ? ConnectionFieldOptions<Types, FieldOptions extends { | ||
resolve: (parent: infer P, ...args: any[]) => unknown; | ||
} ? P : unknown extends ResolveShape ? ParentShape : ResolveShape, Type, Nullable, EdgeNullability, NodeNullability, Args, ResolveReturnShape> & Omit<FieldOptions, 'args' | 'resolve' | 'type'> : never, ...args: NormalizeArgs<[ | ||
connectionOptions: ObjectRef<ConnectionShapeForType<Types, Type, false, EdgeNullability, NodeNullability>> | Omit<ConnectionObjectOptions<Types, Type, EdgeNullability, NodeNullability, ResolveReturnShape>, 'edgesNullable'>, | ||
@@ -76,0 +78,0 @@ edgeOptions: ObjectRef<{ |
@@ -89,5 +89,7 @@ import { FieldKind, FieldNullability, FieldOptionsFromKind, FieldRef, FieldRequiredness, InputFieldMap, InputFieldRef, InputFieldsFromShape, InputShapeFromFields, InputShapeFromTypeParam, inputShapeKey, InterfaceParam, NormalizeArgs, ObjectFieldsShape, ObjectFieldThunk, ObjectParam, OutputShape, OutputType, ParentShape, Resolver, SchemaTypes, ShapeFromTypeParam } from '@pothos/core'; | ||
nodeList: <Args extends InputFieldMap, ResolveShape>(options: NodeListFieldOptions<Types, ParentShape, Args, ResolveShape, Kind>) => FieldRef<unknown[]>; | ||
connection: <Type extends OutputType<Types>, Args extends InputFieldMap, Nullable extends boolean, ResolveReturnShape, EdgeNullability extends FieldNullability<[ | ||
connection: <Type extends OutputType<Types>, Args extends InputFieldMap, Nullable extends boolean, ResolveShape, ResolveReturnShape, EdgeNullability extends FieldNullability<[ | ||
unknown | ||
]> = Types["DefaultEdgesNullability"], NodeNullability extends boolean = Types["DefaultNodeNullability"]>(options: ConnectionFieldOptions<Types, ParentShape, Type, Nullable, EdgeNullability, NodeNullability, Args, ResolveReturnShape> & Omit<FieldOptionsFromKind<Types, ParentShape, Type, Nullable, (InputFieldMap extends Args ? {} : Args) & InputFieldsFromShape<DefaultConnectionArguments>, Kind, ParentShape, ResolveReturnShape>, "args" | "resolve" | "type">, ...args: NormalizeArgs<[ | ||
]> = Types["DefaultEdgesNullability"], NodeNullability extends boolean = Types["DefaultNodeNullability"]>(options: FieldOptionsFromKind<Types, ParentShape, Type, Nullable, (InputFieldMap extends Args ? {} : Args) & InputFieldsFromShape<DefaultConnectionArguments>, Kind, ResolveShape, ResolveReturnShape> extends infer FieldOptions ? ConnectionFieldOptions<Types, FieldOptions extends { | ||
resolve: (parent: infer P, ...args: any[]) => unknown; | ||
} ? P : unknown extends ResolveShape ? ParentShape : ResolveShape, Type, Nullable, EdgeNullability, NodeNullability, Args, ResolveReturnShape> & Omit<FieldOptions, "args" | "resolve" | "type"> : never, ...args: NormalizeArgs<[ | ||
connectionOptions: ObjectRef<ConnectionShapeForType<Types, Type, false, EdgeNullability, NodeNullability>> | Omit<ConnectionObjectOptions<Types, Type, EdgeNullability, NodeNullability, ResolveReturnShape>, "edgesNullable">, | ||
@@ -94,0 +96,0 @@ edgeOptions: ObjectRef<{ |
{ | ||
"name": "@pothos/plugin-relay", | ||
"version": "3.28.7", | ||
"version": "3.29.0", | ||
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema", | ||
@@ -43,8 +43,8 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@pothos/core": "3.22.9", | ||
"@pothos/plugin-complexity": "3.11.7", | ||
"@pothos/test-utils": "1.4.7", | ||
"graphql": "16.6.0", | ||
"graphql-subscriptions": "^2.0.0", | ||
"graphql-tag": "^2.12.6" | ||
"graphql-tag": "^2.12.6", | ||
"@pothos/core": "3.23.0", | ||
"@pothos/plugin-complexity": "3.11.7", | ||
"@pothos/test-utils": "1.4.7" | ||
}, | ||
@@ -51,0 +51,0 @@ "gitHead": "9dfe52f1975f41a111e01bf96a20033a914e2acc", |
@@ -238,2 +238,3 @@ import { | ||
Nullable extends boolean, | ||
ResolveShape, | ||
ResolveReturnShape, | ||
@@ -243,3 +244,3 @@ EdgeNullability extends FieldNullability<[unknown]> = Types['DefaultEdgesNullability'], | ||
>( | ||
options: ConnectionFieldOptions< | ||
options: FieldOptionsFromKind< | ||
Types, | ||
@@ -249,21 +250,24 @@ ParentShape, | ||
Nullable, | ||
EdgeNullability, | ||
NodeNullability, | ||
Args, | ||
(InputFieldMap extends Args ? {} : Args) & | ||
InputFieldsFromShape<DefaultConnectionArguments>, | ||
Kind, | ||
ResolveShape, | ||
ResolveReturnShape | ||
> & | ||
Omit< | ||
FieldOptionsFromKind< | ||
> extends infer FieldOptions | ||
? ConnectionFieldOptions< | ||
Types, | ||
ParentShape, | ||
FieldOptions extends { resolve: (parent: infer P, ...args: any[]) => unknown } | ||
? P | ||
: unknown extends ResolveShape | ||
? ParentShape | ||
: ResolveShape, | ||
Type, | ||
Nullable, | ||
(InputFieldMap extends Args ? {} : Args) & | ||
InputFieldsFromShape<DefaultConnectionArguments>, | ||
Kind, | ||
ParentShape, | ||
EdgeNullability, | ||
NodeNullability, | ||
Args, | ||
ResolveReturnShape | ||
>, | ||
'args' | 'resolve' | 'type' | ||
>, | ||
> & | ||
Omit<FieldOptions, 'args' | 'resolve' | 'type'> | ||
: never, | ||
...args: NormalizeArgs< | ||
@@ -270,0 +274,0 @@ [ |
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
358024
4675