Get booking ID when booking is placed

@sonicswapstu No problem, I definitely misinterpret documentation myself sometimes too!
So…You will need to create a new collection for holding whatever booking events data you would like. Then in the FE you can query that collection to get the most recent bookingID.

Some things to consider: If you want to verify that the booking id you grabbed is connected to the user currently making the booking, you can use the backend function queryBookings to check this (in a jsw that you can call from the FE)

Another potential consideration is that if you query for the booking ID and nothing is returned for that user yet (or perhaps nothing that is from that moment) you will want to fire the query again. This could happen if your query fires prior to the event data being captured in the events.js event handler.