I have a MongoDB object that looks like this:
_id: ObjectID
remote_address: [
0: Foo
1: Bar
]
I use collection.update_one({data}, {"$push": {data}})
to add items to the array.
However, is it possible to make an array item another object? Kind of like so:
_id: ObjectID
remote_address: [
0: Foo {
Foo: Bar
}
1: Bar {
Foo: Bar
}
]
Thanks!