[GODRIVER-1930] bsoncore.Value#Array should return Array, not Document Created: 23/Mar/21  Updated: 28/Oct/23  Resolved: 16/Apr/21

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

Type: Bug Priority: Major - P3
Reporter: Divjot Arora (Inactive) Assignee: Benji Rewis (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Documentation Changes: Not Needed

 Description   

In 1.5.0, we made bsoncore.Array its own type rather than an alias of bsoncore.Document. We should also change the bsoncore.Value#Array and ArrayOK functions to return Array rather than Document as they currently do. bsoncore.ReadArray will also require a fix and we should audit the rest of bsoncore to make sure we don't miss anything.



 Comments   
Comment by Githook User [ 16/Apr/21 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-1930 bsoncore Array functions should return Array (#626)
Branch: release/1.5
https://github.com/mongodb/mongo-go-driver/commit/3525304ea34d748795932ffd76e582d3b0406376

Comment by Githook User [ 16/Apr/21 ]

Author:

{'name': 'Benjamin Rewis', 'email': '32186188+benjirewis@users.noreply.github.com', 'username': 'benjirewis'}

Message: GODRIVER-1930 bsoncore Array functions should return Array (#626)
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/5f5f2165977889e2615c7f6ca06c65ce058817c7

Comment by Benji Rewis (Inactive) [ 29/Mar/21 ]

https://github.com/mongodb/mongo-go-driver/pull/626

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