Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.getCollection('posts').aggregate([
- { $match: { _id: { $gt: "some id" }, tag: 'some tag' } },
- { $limit: 5 },
- { $group: { _id: null, hasNextPage: {??}, hasPreviousPage: {??} } }
- ])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement