Rank 1: Thread
I am trying to query my collection Categories. Initially, I tried to query by the documentId, but that yielded no results. I then added an index on $id, that did not help... Now tried to Query on the name attribute... that didnt work either. Not sure what I am doing wrong... Here is the query. TIA
config.db,
config.collection.categories,
[
Query.equal("$id", ["68432b91003a62bcfab4"])
]
);
config.db,
config.collection.categories,
[
Query.equal("name", ["Emotional Health"])
]