Search code examples
angularjsloopbackjsstronglooploopback

Loopback default find method does not support large where condition data


Loopback default find method does not support large where condition data due to method type GET.

I am filtering list with where condition which have large array of ids. And default find method for collection not work for it. Client side i have using angularjs.

What should i do either create a POST API for find request or their are another way to handle this.


Solution

  • As noted here, nodeJS max header size in http.request

    it is not a loopback issue. Http does not define any limit, but servers usually accept 8kb or 16kb headers size and you cannot alter this on node unless you compile you own version. Making your own custom method passing your data to the body of the request will work.