我正在尝试将我的无服务器nodejs graphql api转换为使用typescript,但是serverless抛出一个错误,指出graphql处理程序不是一个函数。 错误消息: Error: Serverless-offline: handler for 'hello' is not a function
at Object.createHandler (/home/savnik/serverless-webpack-typescript-apollo/node_modules/serverless-offline/src/functionHelper.js:2
我在我的前端(Gatsby)和pollo之间添加了身份验证。这适用于运行时的请求。然而,在构建时,没有标头不会发送到Apollo。我有以下代码: // SERVER SIDE
// apollo server setup
const { ApolloServer, AuthenticationError } = require("apollo-server-lambda")
... //other imports
const server = new ApolloServer({
context: ({ event, context }) => {
if
我正在使用type-graphql和apollo-server-lambda构建一个无服务器后端,但在向graphql端点发出大约第三个请求后,我得到了一个错误 Error: Cannot use GraphQLSchema "[object GraphQLSchema]" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "g
我已经将阿波罗服务器从v3迁移到了v4。
它工作一切都很好,但我无法在生产模式下构建该项目,因为@apollo包中有几个类型记录错误。这是剩下的最后两个:
[tsl] ERROR in /home/xxx/projects/dashboard-api/node_modules/@apollo/server/src/ApolloServer.ts(238,53)
TS2345: Argument of type 'ApolloServerOptions<TContext>' is not assignable to parameter of type
我有“阿波罗图形快车”的后端。
在我的客户反应应用程序中,我下一步做:
apollo codegen:generate --excludes=node_modules/* --includes=**/*.tsx --target typescript --tagName gql --outputFlat generate
我等待生成文件夹,但是这个命令给出了下一个错误:
Error: There are multiple definitions for the herewas operation.
All operations in a project must have unique na