Skip to content

pulyaevskiy/firestore-interop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Dart facade for Cloud Firestore NodeJS client library.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published