Last updated:
0 purchases
mongorpc
mongorpc-dart #
mongorpc client for flutter
import 'package:mongorpc/mongorpc.dart';
Future<void> main(List<String> args) async {
var options = ChannelOptions(credentials: ChannelCredentials.insecure());
var client = await mongorpc("localhost", port: 1203, options: options);
var database = client.database("sample_mflix");
var collection = database.collection("movies");
var documents = await collection
.documents()
.limit(10)
.sort(by: "title")
.where("title", isEqualTo: "Blacksmith Scene")
.get();
print(documents);
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.