This repository was archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
"or" and "and" operators do not works #216
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Describe the bug
Do not know if is a feature request or a bug, but queries with filters like where: { and: [ { item: 'somestring' }, { deleted: false } ] } do not works.
error Error: Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.
at Function.Query.validateQueryEndpoints_ (C:\myproject\node_modules\@firebase\database\src\api\Query.ts:138:15)
at Query.startAt (C:\myproject\node_modules\@firebase\database\src\api\Query.ts:509:11)
at Query.equalTo (C:\myproject\node_modules\@firebase\database\src\api\Query.ts:574:17)
at RealtimeDatabase.queryData (C:\myproject\node_modules\loopback-connector-realtime-database\lib\realtime-database.js:81:10)
at RealtimeDatabase.all (C:\myproject\node_modules\loopback-connector-realtime-database\lib\realtime-database.js:57:33)
at invokeConnectorMethod (C:\myproject\node_modules\loopback-datasource-juggler\lib\dao.js:172:21)
at C:\myproject\node_modules\loopback-datasource-juggler\lib\dao.js:1730:7
at doNotify (C:\myproject\node_modules\loopback-datasource-juggler\lib\observer.js:157:49)
at doNotify (C:\myproject\node_modules\loopback-datasource-juggler\lib\observer.js:157:49)
at Function.ObserverMixin._notifyBaseObservers (C:\myproject\node_modules\loopback-datasource-juggler\lib\observer.js:180:5)
at Function.ObserverMixin.notifyObserversOf (C:\myproject\node_modules\loopback-datasource-juggler\lib\observer.js:155:8)
at Function.ObserverMixin._notifyBaseObservers (C:\myproject\node_modules\loopback-datasource-juggler\lib\observer.js:178:15)
at Function.ObserverMixin.notifyObserversOf (C:\myproject\node_modules\loopback-datasource-juggler\lib\observer.js:155:8)
at Function.find (C:\myproject\node_modules\loopback-datasource-juggler\lib\dao.js:1728:10)
at Function.findOne (C:\myproject\node_modules\loopback-datasource-juggler\lib\dao.js:1775:8)
at UserRepository.findOne (C:\myproject\node_modules\@loopback\repository\src\repositories\legacy-juggler-bridge.ts:405:23)
at UserController.register (C:\myproject\src\controllers\user.controller.ts:236:53)
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request