client.schema is the name of my collection
When i run this code:
client.schema.update(
{},
{ $set: {"newField": 1} },
false,
true
)
It doesn't create a new field in every document called newField, but instead returns this error:
MongooseError: Callback must be a function, got true
How would I add the field to all documents?