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
Apollo server 3 with AWS lambda (apollo-server-lambda) does not compatible with serverless offline plugin.
const server = new ApolloServer({
plugins: [ApolloServerPluginLandingPageGraphQLPlayground()],
typeDefs: typeDefs,
resolvers: resolvers,
introspection: true,
});
its starts fine.
Serverless: Running "serverless" installed locally (in service node_modules)
offline: Starting Offline: dev/ap-southeast-1.
offline: Offline [http for lambda] listening on http://localhost:3002
offline: Function names exposed forlocal invocation by aws-sdk:
* employee: aws-apollo-demo-dev-employee
┌────────────────────────────────────────────────────────────────────────────┐
│ │
│ POST | http://localhost:3000/dev │
│ POST | http://localhost:3000/2015-03-31/functions/employee/invocations │
│ GET | http://localhost:3000/dev │
│ POST | http://localhost:3000/2015-03-31/functions/employee/invocations │
│ │
└────────────────────────────────────────────────────────────────────────────┘
offline: [HTTP] server ready: http://localhost:3000 🚀
offline:
offline: Enter "rp" to replay the last request
but when query it gives an error.
current
Cannot POST null
expected
should return result and / should show playground as it does on apollo-server-lambda 2.x.x
how ever if I downgrade to apollo-server-lambda 2.x.x everything works fine with serverless offline.
also this works when deployed to aws.
how we can get this works with sls offline.
The text was updated successfully, but these errors were encountered:
Hi! I know we document how to use serverless but I'm not familiar with the offline plugin. In order to reproduce the issue, I'd like to have to apply any creativity. Are you able to provide a full reproduction (eg, starting with git clone) that includes all of the files relevant (including however you enable offline) so we can see it ourselves in exactly the same way you see it? Happy to reopen if a full reproduction is included.
Apollo server 3 with AWS lambda (
apollo-server-lambda
) does not compatible with serverless offline plugin.its starts fine.
but when query it gives an error.
current
Cannot POST null
expected
should return result and / should show playground as it does on
apollo-server-lambda 2.x.x
how ever if I downgrade to
apollo-server-lambda 2.x.x
everything works fine with serverless offline.also this works when deployed to aws.
how we can get this works with sls offline.
The text was updated successfully, but these errors were encountered: