You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been using Loopback for many projects now but I've never been able to do this. I tried remote nesting, but it only show the model's relation built-in method instead of adding the remote method that I've created.
Quick example:
"Customer" model have a hasOne relationship towards "PaymentDetails".
"PaymentDetails" have a custom remote method "/check".
/PaymentDetails/check is available.
/Customer/{:customerId}/PaymentDetails/check is NOT available.
I've trying declaring the remote methode through JS code, and JSON, with no result.
Is there a proper way to acheive this ? Also, is this the best practice to do so ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've been using Loopback for many projects now but I've never been able to do this. I tried remote nesting, but it only show the model's relation built-in method instead of adding the remote method that I've created.
Quick example:
"Customer" model have a hasOne relationship towards "PaymentDetails".
"PaymentDetails" have a custom remote method "/check".
/PaymentDetails/check is available.
/Customer/{:customerId}/PaymentDetails/check is NOT available.
I've trying declaring the remote methode through JS code, and JSON, with no result.
Is there a proper way to acheive this ? Also, is this the best practice to do so ?
Thanks for help, Loopback is amazing.
Beta Was this translation helpful? Give feedback.
All reactions