Apollo Integration Testing

I am looking into apollo integration testing and the only information there is is in this article (Integration Testing - Apollo GraphQL Docs) but I am looking for some more in-depth or complete examples as this doesnt really provide any context on the API, what the mock is, the datasource, etc…

Hello,

Integration testing can mean many different things to different users. The good news is that GraphQL is just like any HTTP API and can be tested either end-to-end or with the different components of a GraphQL execution.

I reccomend you read other resources on doing integration testing in NodeJS and HTTP APIs, then with the knowelge linked in our post, you can know where to create a query in places when you need to execute a request, or how to override the context to mock a “service” or data source

https://www.toptal.com/nodejs/nodejs-guide-integration-tests