how can i do the following with bluebird promises. modules i am using are bluebird
, promise-mysql
- insert in table A and return a_id
- insert records in table B using a_id as foreign key
- insert records in table C using a_id as foreign key
- now response is send to user that all records are added.
I am using native queries.
via Khan
No comments:
Post a Comment