emarel
emarel

Reputation: 401

Loopback: Remote Method is converting "null" to null value

I am having an issue where whenever my front end (angular) makes a remote method call that has a string "null" in it once it gets to the remote method in Loopback, Loopback has converted the string "null" to a null value.

For example if a remote method /query takes in a filter:

{
    "name": "null"
}

Loopback changes it to

{
    "name": null
}

How could I go about fixing this issue? Note, I do not want to add a convertToString functionality on Loopbacks end. I much rather know what is going on in the backend of Loopback that is causing this and turn off whatever is causing this. Thanks for any help!

Upvotes: 1

Views: 619

Answers (0)

Related Questions