angel_mongo 2.0.3

Dart native
Flutter Android iOS

MongoDB-enabled services for the Angel framework. Well-tested.

example/example.dart

import 'package:angel_framework/angel_framework.dart';
import 'package:angel_mongo/angel_mongo.dart';
import 'package:mongo_dart/mongo_dart.dart';

main() async {
  var app = new Angel();
  Db db = new Db('mongodb://localhost:27017/local');
  await db.open();

  var service = app.use('/api/users', new MongoService(db.collection("users")));

  service.afterCreated.listen((event) {
    print("New user: ${event.result}");
  });
}
1
likes
80
pub points
60%
popularity

Publisher

angel-dart.dev

MongoDB-enabled services for the Angel framework. Well-tested.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

angel_framework, json_god, merge_map, mongo_dart

More

Packages that depend on angel_mongo