Unsupported operator $near loopback

10 views
Skip to first unread message

Siddu Mirji

unread,
Dec 1, 2016, 8:11:17 AM12/1/16
to LoopbackJS
I'm getting Unsupported operator $near loopback if I use near  inside or filter.

Here is my code,  Please Help.

 'where': {
                    or:[
                       { 'slatlong': {
                            near: slocation,
                            maxDistance: 1,
                            unit: 'kilometers'
                       }},
                       { 'dlatlong': {
                            near: dlocation,
                            maxDistance: 1,
                            unit: 'kilometers'
                     }}],
                    'status': 'Active',
                    'date': data.date,
                    'seats': {
                        gt: 0
                    }
                }

Thanks
Sid.

sim...@ca.ibm.com

unread,
Dec 8, 2016, 2:46:11 PM12/8/16
to LoopbackJS
Might be a bug, can you provide a sample repo to produce the issue?
Reply all
Reply to author
Forward
0 new messages