Create a Cart API with Inventory Validation using Hasura Actions

preview_player
Показать описание
In this video, learn how to create a Cart API for an e-commerce app that checks for product inventory availability before insertion and updates the inventory data by decrementing the available stock column.

The Hasura Action handler is written using nodejs-express.

-----

🚀 Hasura makes your data instantly accessible over a real-time GraphQL API, so you can build and ship modern apps and APIs faster. Hasura connects to your databases, REST servers, GraphQL servers and third party APIs (eg: Stripe, Salesforce) to provide a unified realtime GraphQL API across all your data sources instantly.

-----
Рекомендации по теме
Комментарии
Автор

Thanks for the video.

I have a question, how do you make sure the inventory has still products available between the first check and the actual modification?

Thanks again.

dani-mp
Автор

We know that our action will only return one error at a time can we get error response with only 1 error? Instead of errors array?

naan_thamizhan
Автор

Can You please make A Full-Stack E-COMMERCE tutorial?

shauryatuli
Автор

Hey how can i solve this error required, but not found"

Publicvoidlifeofficial
join shbcf.ru