Discussions
Search by _id field
Hello again. I am having a trouble using the `with_scope` tag. I need to filter by `_id.in: array of ids`.
Looks like a normal case, but in the MongoDB logs I see `{"_id" => { "$in" => false } }` and it crashes.
On the other hand, if I filter entries by `id.in: array of ids` , the query looks good but I get no results.
Are there any prerequisites for such behavior or is this a bug?
Posted by Igor 12 months ago
order_by attribute on with_scope not working?
Neither on the engine nor on wagon, this ordering seems to work:
```
{% with_scope start.gt: now, order_by: 'start.asc' %}
{% assign future_events = contents.events %}
{% endwith_scope %}
```
The order as defined in events.yml is start.desc, which is also the order I get regardless of the order defined in the with_scope tag.
Posted by Tobias Geisler over 7 years ago