[GODRIVER-1968] Pipeline can't handle empty structs and maps Created: 16/Apr/21  Updated: 19/Apr/21  Resolved: 19/Apr/21

Status: Closed
Project: Go Driver
Component/s: API
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Sean Teeling Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates GODRIVER-1967 Pipeline can't handle empty structs a... Closed

 Description   

collection.UpdateOne fails if a {{$set, myStruct}} is supplied within a mongo pipeline, and the struct contains empty values.

 

However that same $set succeeds, when it's not within a pipeline.


Generated at Thu Feb 08 08:37:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.