My query works in mongo command shell but not through meteor collection.
Should I access mongo directly in order to get my query to work?
Here is what my query looks like:
db.products.find({_id:"Btn7GTdaEy9umzXjF","fulfillments.ownerId":""},{limit:1,fulfillments:{$slice:1}})
it works as expected in mongo shell but not through meteor collection.
This is what you’re after:
https://docs.meteor.com/api/collections.html#Mongo-Collection-rawCollection
Really odd but this still returns an empty array. Why does it work in the command line but not through the app?
Just checking: You’re doing this query on the server, right?
nvm this actually worked with regular meteor queries problem was with the id I was using.