loopback icon indicating copy to clipboard operation
loopback copied to clipboard

elemMatch include ObjectId not work in REST API filter

Open nvcken opened this issue 11 years ago • 5 comments

Below filter condition not work

?filter={"where":{"stores":{"elemMatch":{"code":"wh1","memberId":"551cfeb676cce6df0f3536b1"}}}}

If I edit memberId data type from ObjectId to String, It works

nvcken avatar Jul 23 '15 03:07 nvcken

:+1:

NelsonBrandao avatar Aug 13 '15 17:08 NelsonBrandao

:+1:

joaoveiga avatar Aug 13 '15 17:08 joaoveiga

:+1:

bluestaralone avatar Aug 14 '15 02:08 bluestaralone

hey @nvcken thanks for your suggestion, we are going to support ObjectId in the future! for more details please check here: https://github.com/strongloop/loopback-datasource-juggler/pull/778

jannyHou avatar Dec 07 '15 21:12 jannyHou

This issue is a duplicate feature request as https://github.com/strongloop/loopback-datasource-juggler/pull/778. I am closing it here. Thanks!

jannyHou avatar Dec 07 '15 21:12 jannyHou