Home > database >  How to access firestore in dart on server side
How to access firestore in dart on server side

Time:03-09

I am looking for a package/library or any helpful documentation to use firestore on the server-side in dart.
There is this firebase-admin SDK available for other platforms like Python/Java/Go etc but no implementation for Dart. Two/three packages are available for Dart that can do that but they seem dead.
A googleapi's package for dart also have a firestore package but no documentation to start with. Any kind of help would be appreciated.

CodePudding user response:

You could set up your own secured API with supported langs to handle requests from Dart

CodePudding user response:

I found this package firedart. And also managed to retrieve data from my firestore project using it.

import 'package:firedart/firedart.dart';

String pi = 'example-app';

void main(List<String> arguments) async {
  Firestore.initialize(pi);
  var map = await Firestore.instance.collection("users").get();
  print(map);
}
  • Related