Apollo-server: `apollo-server-lambda` "local" testing

Created on 28 Dec 2017  路  3Comments  路  Source: apollographql/apollo-server

It'd be nice to have the ability to test locally apollo-server-lambda in addition of the online workflow with S3 (with a library such as lambda-local); some users might want to migrate from apollo-server-{something} to apollo-server-lambda and the conversion should be smoother if it could be done locally.

Most helpful comment

@dbrrt I am using apollo-server-lamba for local server tests. All you have to do is import your lambda handler in a test and execute it with a payload.

If you want a local "dev server" environment serverless-offline is working fine for me too (like @dhm116
said)!

All 3 comments

I'm not sure if you've found a solution or not, but you should be able to do local development and testing with apollo-server-lambda via the serverless-offline library.

@dbrrt I am using apollo-server-lamba for local server tests. All you have to do is import your lambda handler in a test and execute it with a payload.

If you want a local "dev server" environment serverless-offline is working fine for me too (like @dhm116
said)!

As stated by others above, testing apollo-server-lamdba locally can be accomplished using serverless. Since creating a reliably environment that simulates AWS Lambda can be a bit complicated and specialized, it鈥檚 probably best that we rely on libarires that specialize in doing exactly that.

Thanks for this suggestion originally!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dupski picture dupski  路  3Comments

espoal picture espoal  路  3Comments

veeramarni picture veeramarni  路  3Comments

nevyn-lookback picture nevyn-lookback  路  3Comments

disyam picture disyam  路  3Comments