I am using Loopback 3. I use method patchOrCreate of Loopback for saving data into DB.
patchOrCreate
Now, I want to check condition to determine to save into DB or not