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

Mongorest client for Dart. This library provides an ORM interface to Mongorest.

example/main.dart

import 'package:mongorest/mongorest.dart';

dynamic main() async {
  const pasubotUrl = '';
  const pasubotKey = '';
  final client = MongorestClient(
    '$pasubotUrl/rest/v1',
    headers: {'apikey': pasubotKey},
    schema: 'public',
  );
  try {
    final response = await client.from('countries').select();
    print(response);
  } on MongorestException catch (e) {
    // handle MongorestError
    print(e.code);
    print(e.message);
  }
}
0
likes
145
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

Mongorest client for Dart. This library provides an ORM interface to Mongorest.

Documentation

API reference

License

MIT (license)

Dependencies

http, meta, pasubot_json_isolate

More

Packages that depend on mongorest