A function to store warehouses to SQL database, and query to list them.
- Save one warehouse and query to return all of them.
Response
Sample 200
Response:
[
{
"_id": "664897aff5fc199b80c1a132",
"location": "Street 283, Earth",
"capacity": 60
},
{
"_id": "664897f58f2d686e85b93692",
"location": "Street 593, Earth",
"capacity": 60
},
// ...
]
Setting | Value |
---|---|
Runtime | Node (18.0) |
Entrypoint | src/main.js |
Build Commands | npm install |
Permissions | any |
Timeout (Seconds) | 15 |
The endpoint to connect to your Mongo database.
Question | Answer |
---|---|
Required | Yes |
Sample Value | mongodb+srv://appwrite:Yx42hafg7Q4fgkxe@cluster0.7mslfog.mongodb.net/?retryWrites=true&w=majority&appName=Appwrite |