firestore_interop 0.0.1 copy "firestore_interop: ^0.0.1" to clipboard
firestore_interop: ^0.0.1 copied to clipboard

Dart 1 only

Dart facade for Cloud Firestore NodeJS client library.

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.

0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Dart facade for Cloud Firestore NodeJS client library.

Repository

License

BSD-3-Clause (license)

Dependencies

func, js, node_interop

More

Packages that depend on firestore_interop