fix(membership): correct \$unwind option preserveNullAndEmpty → preserveNullAndEmptyArrays
MongoDB 7.0 rejects the invalid key with code 28811, causing 500 on
GET /organizations/{id}/members.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
5f084f359f
commit
3a2bbc9ca0
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ async def list_org_members(
|
|||
"as": "user_doc",
|
||||
}
|
||||
},
|
||||
{"$unwind": {"path": "$user_doc", "preserveNullAndEmpty": False}},
|
||||
{"$unwind": {"path": "$user_doc", "preserveNullAndEmptyArrays": False}},
|
||||
{"$sort": {"created_at": 1}},
|
||||
]
|
||||
details = []
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue