Search code examples
javascriptnode.jsloopbackjsstrongloop

Registering remote method with relational model in strongloop


I have 2 models, a user and a messages model. It's set up with a one-to-many relationship. This works great, and I can see all the default methods of messages under the user model in explorer.

The problem I have is that I've created a custom remote method sendMessageon the messages model. This works and I can access it under the messages model, but not for the user model. How do connect and access it?

enter image description here


Solution

  • As it turns out, superkhau was right. It's an issue with https://github.com/strongloop/loopback/issues/1130