[GODRIVER-705] Add an alias in bsoncore for an Array Created: 14/Dec/18  Updated: 28/Oct/23  Resolved: 04/Jun/19

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

Type: Improvement Priority: Minor - P4
Reporter: Craig Wilson Assignee: Run Tian Yu (Inactive)
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

bsoncore has a bsoncore.Document which is used for both documents and arrays. That is fine since this is very low level. However, it is very confusing when passing around arrays because the type is a bsoncore.Document. It would be great if we had a bsoncore.Array type alias so that it is clear that these bytes we are passing around is an array as opposed to a document.



 Comments   
Comment by Githook User [ 04/Jun/19 ]

Author:

{'name': 'Connie Yu', 'email': 'connie.yu@10gen.com', 'username': 'connieyu'}

Message: Add bsoncore.Array type alias

GODRIVER-705

Change-Id: I900907e2339fbda10ad92487b141e515d7ffe7b3
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/e3cdacc13ceacc6b0e9e4623111ef4ffae2d8009

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