Originally created by @dwirandytlvk on GitHub (Dec 22, 2022).
Hallo @JohnEstropia
I'am trying this library that seems great, i want to ask about how add / update unique object
for example i have 2 object FlightBookingInfo has one FlightBookingDetail, i want to update FlightBookingInfo and also FlightBookingDetail from my json that i got from the API, i can add or update FlightBookingInfo but FlightBookingDetail value is inserted instead of update existing value that has relationship to FlightBookingInfo
May i know how to update FlightBookingDetail from json, without fetching it first from database?
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @dwirandytlvk on GitHub (Dec 22, 2022).
Hallo @JohnEstropia
I'am trying this library that seems great, i want to ask about how add / update unique object
for example i have 2 object
FlightBookingInfohas oneFlightBookingDetail, i want to update FlightBookingInfo and also FlightBookingDetail from my json that i got from the API, i can add or updateFlightBookingInfobutFlightBookingDetailvalue is inserted instead of update existing value that has relationship toFlightBookingInfoMay i know how to update FlightBookingDetail from json, without fetching it first from database?
FlightBookingInfo
FlightBookingDetail
Here is how i add/update the data