/firestore-interop

Dart facade for Cloud Firestore NodeJS client library.

Primary LanguageDartBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

Dart facade for Cloud Firestore NodeJS client library.

Type definitions are auto-generated using dart_js_facade_gen tool.

Usage:

import 'package:firestore_interop/firestore_interop.dart';
import 'package:js/js.dart';
import 'package:js/js_util.dart';

void main() {
  var firestore = initFirestore(
    projectId: '<PROJECT_ID>',
    keyFilename: '<PATH_TO_SERVICE_ACCOUNT.JSON>',
  );
  var doc = firestore.doc('/posts/intro-to-firestore');
  doc.set(jsify({'body': 'Hello World'})).then(allowInterop((_) {
    print('Doc saved.');
  }), allowInterop((error) {}));
}

Features and bugs

Please file feature requests and bugs at the issue tracker.