Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
miya committed Jan 9, 2025
1 parent 7606aac commit ac27a76
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const convertNullToEmptyGrantedArrays = async(): Promise<void> => {
const requests = [
{
updateMany: {
// Matches documents where field is null or nonexistent
// https://www.mongodb.com/docs/manual/tutorial/query-for-null-fields/#equality-filter
filter: { grantedUsers: null },
update: {
$set: { grantedUsers: [] },
Expand Down

0 comments on commit ac27a76

Please sign in to comment.