GraphQLModule.forRoot({
context: ({ req, connection }) =>
connection ? { req: connection.context } : { req },
playground: true,
debug: true,
autoSchemaFile: 'schema.graphql',
installSubscriptionHandlers: true,
subscriptions: {
onConnect: (connectionParams: any) => {
return connectionParams.Authorization;
},
},
}),
“错误”:“无法读取未定义的属性”标题”