You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using these two plugins together I get a type error on relayOptions
Type '{ clientMutationId: "omit"; cursorType: "ID"; }' is missing the following properties from type '{ idFieldName?: string; idFieldOptions?: Partial<Omit<ObjectFieldOptions<ExtendDefaultTypes<{ Scalars: { DateTime: { Input: Date; Output: Date; }; ID: { Output: string | number; Input: string; }; }; PrismaTypes: PrismaTypes; }>, ... 4 more ..., PageInfoShape>, "args" | ... 2 more ... | "nullable">>; ... 29 more ...;...': nodeQueryOptions, nodesQueryOptionsts(2739)
Using @ts-ignore allows it to function correctly. The error goes away when I remove the GraphQL Shield plugin. I copied the plugin exactly as in your example.
The text was updated successfully, but these errors were encountered:
The plugin as written makes the shield option required for query and mutation fields. You can either update the plugin to make these options, or you can define the required options for the node/nodes fields by adding node(s)QueryOptions to relayOptions
When using these two plugins together I get a type error on relayOptions
Type '{ clientMutationId: "omit"; cursorType: "ID"; }' is missing the following properties from type '{ idFieldName?: string; idFieldOptions?: Partial<Omit<ObjectFieldOptions<ExtendDefaultTypes<{ Scalars: { DateTime: { Input: Date; Output: Date; }; ID: { Output: string | number; Input: string; }; }; PrismaTypes: PrismaTypes; }>, ... 4 more ..., PageInfoShape>, "args" | ... 2 more ... | "nullable">>; ... 29 more ...;...': nodeQueryOptions, nodesQueryOptionsts(2739)
Using @ts-ignore allows it to function correctly. The error goes away when I remove the GraphQL Shield plugin. I copied the plugin exactly as in your example.
The text was updated successfully, but these errors were encountered: