la flame
la flame
PPrisma
Created by Crawl on 9/28/2024 in #help-and-questions
.update return null when data is found using .findUnique using the same where clause (version 5.17.
BTW, set export DEBUG="*" and you could see query differences by yourself.
6 replies
PPrisma
Created by Crawl on 9/28/2024 in #help-and-questions
.update return null when data is found using .findUnique using the same where clause (version 5.17.
I had the same issue before. Solved using AND operator in both queries.
6 replies
PPrisma
Created by la flame on 4/24/2024 in #help-and-questions
[MongoDB] dup key: { itemId: null }, labels: {}
db.Collection.aggregate([{$group : { "_id" : '$itemId', count : {$sum : 1}}}, {$sort : { "count" : -1 }}]) returns { _id: null, count: 10 } and other count == 1 so no duplicates
3 replies