fix: do not allow reserved context keys in ServerContext or UserContext #8207
Annotations
7 errors
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L42
Type 'GraphQLSchemaWithContext<YogaInitialContext & UserContext>' is not assignable to type 'YogaSchemaDefinition<{}, ContextBase> | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L43
Type 'UserContext' is not assignable to type 'ContextBase | Promise<ContextBase> | ((initialContext: YogaInitialContext) => ContextBase | Promise<ContextBase>) | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L70
Type 'GraphQLSchemaWithContext<YogaInitialContext & UserContext>' is not assignable to type 'YogaSchemaDefinition<{}, ContextBase> | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L71
Type 'UserContext' is not assignable to type 'ContextBase | Promise<ContextBase> | ((initialContext: YogaInitialContext) => ContextBase | Promise<ContextBase>) | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L106
Type 'GraphQLSchemaWithContext<YogaInitialContext & UserContext>' is not assignable to type 'YogaSchemaDefinition<{}, ContextBase> | undefined'.
|
Build Packages:
packages/graphql-yoga/__tests__/context.spec.ts#L107
Type 'UserContext' is not assignable to type 'ContextBase | Promise<ContextBase> | ((initialContext: YogaInitialContext) => ContextBase | Promise<ContextBase>) | undefined'.
|
Build Packages
Process completed with exit code 1.
|
The logs for this run have expired and are no longer available.
Loading