-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Url filters AND OR BETWEEN #199
Comments
I have the exact same use case and after reading the documentation, it does not seem to be possible out of the box. @dchester If you could point me in the right direction, I am willing to prepare a PR. |
It ends up that emulating the Given a model: sequelize.define('timeserie', {
day: {type: DataTypes.DATE},
value: {type: DataTypes.REAL}
}); And a resource: resources.timeserie = epilogue.resource({
model: models.timeserie,
endpoints: ['/timeserie'],
actions: ['list', 'read'],
search: [
{operator: '$gte', param: 'begin', attributes: [ 'day' ]},
{operator: '$lte', param: 'end', attributes: [ 'day' ]}
]
}); One can use |
Yes ok but how to avoid to specify attributes: [ 'day' ] ? Cheers. |
It is. It's called dynamic coding. You should try it. |
Hi,
I understood if I request /resource/?name=["rob","henry"] i will get :
where name in ("rob","henry")
what about chaining AND, OR, and BETWEEN ?
I mean I've a field date, how to query thisdate between DATE1 and DATE2 ?
I there a full documentation on query parameters available ?
Thanks
The text was updated successfully, but these errors were encountered: