You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use a decorator pattern to react to user input. The user can filter data by range or bigger/smaller as. The properties are nested. After upgrading to Sails.js 1.0 this stopped working. It looks something like this:
Could not use the provided where clause. Could not filter by data.property: data.property is not a valid name for an attribute in Waterline. Even though this model (data) declares schema: false, this is not allowed.
The text was updated successfully, but these errors were encountered:
Hi @ndabAP -- it looks like you were relying on some undocumented features of Waterline that just happened to work in previous versions; namely using native Mongo query syntax within a Waterline query. In 1.0, you'll need to use the lower-level datastore functionality.
@sgress454 Is it possible to do this with Waterline on the client? I understand with .manager you can make it work on the server side, but we would like to be able to do a query like find({'nested.object': 'value'}) on the client.
Sails version: 1.0.0-36
Node version: 7.9.0
NPM version: 4.2.0
Operating system: Ubuntu
Data base: MongoDB
I use a decorator pattern to react to user input. The user can filter data by range or bigger/smaller as. The properties are nested. After upgrading to Sails.js 1.0 this stopped working. It looks something like this:
This results in error:
The text was updated successfully, but these errors were encountered: