| id | samples-rust | |||||
|---|---|---|---|---|---|---|
| title | GraphQL Application with MongoDB | |||||
| sidebar_label | Rust + Mongo (GraphQL) | |||||
| description | The following sample app to test Keploy integration capabilities using rust and MongoDb. | |||||
| tags |
|
|||||
| keyword |
|
import InstallReminder from '@site/src/components/InstallReminder';
This is a sample app to test Keploy integration capabilities using rust and MongoDb. Buckle up, it's gonna be a fun ride!
git clone https://github.com/keploy/samples-rust && cd samples-rust/gql-mongoWe will be using Docker compose to run Mongo on Docker container.
docker compose up -dsudo -E env PATH=$PATH keploy record -c 'cargo run'Go to the localhost:8000 and create some queries.
We will get the following output in our terminal
Now, let's run the keploy in test mode again:-
sudo -E env PATH=$PATH keploy test -c 'cargo run'Voila!! Our testcases has passed 🌟
Hope this helps you out, if you still have any questions, reach out to us .

