firestore_interop 0.0.1 firestore_interop: ^0.0.1 copied to clipboard
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.