synclayer_mongodb 1.0.0 copy "synclayer_mongodb: ^1.0.0" to clipboard
synclayer_mongodb: ^1.0.0 copied to clipboard

discontinuedreplaced by: synclayer

MongoDB adapter for SyncLayer - enables offline-first sync with MongoDB database.

synclayer_mongodb #

MongoDB adapter for SyncLayer.

Installation #

dependencies:
  synclayer: ^1.4.1
  synclayer_mongodb: ^1.0.0

Usage #

import 'package:synclayer/synclayer.dart';
import 'package:synclayer_mongodb/synclayer_mongodb.dart';
import 'package:mongo_dart/mongo_dart.dart';

final db = await Db.create('mongodb://localhost:27017/mydb');
await db.open();

await SyncLayer.init(
  SyncConfig(
    customBackendAdapter: MongoDBAdapter(db: db),
    collections: ['todos'],
  ),
);

License #

MIT License

0
likes
140
points
47
downloads

Publisher

verified publisherhostspica.com

Weekly Downloads

MongoDB adapter for SyncLayer - enables offline-first sync with MongoDB database.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, mongo_dart, synclayer

More

Packages that depend on synclayer_mongodb