onCouponApplied()

Could someone tell me how I can transfer the coupon name from this function over to a collection DB? I have this function in the events.js code, but I don’t know how to take the event. coupon .name and send it into a collection database. Thank you.