insertObjects<T extends ManagedObject> method Null safety

Future<List<T>> insertObjects<T extends ManagedObject>(
  1. List<T> objects
)

Inserts each object in objects into this context.

If any insertion fails, no objects will be inserted into the database and an exception is thrown.

Implementation

Future<List<T>> insertObjects<T extends ManagedObject>(
  List<T> objects,
) async {
  return Query<T>(this).insertMany(objects);
}