mortar_client 0.1.0 copy "mortar_client: ^0.1.0" to clipboard
mortar_client: ^0.1.0 copied to clipboard

Dart and Flutter client for Mortar, a mainland-China-friendly Backend-as-a-Service for mobile and web apps.

example/mortar_client_example.dart

import 'package:mortar_client/mortar_client.dart';

Future<void> main() async {
  final mortar = MortarClient(ClientOptions(
    url: 'https://project-uuid.api.mortar.appunvs.com',
    apiKey: 'mtr_live_example',
  ));

  final todos = await mortar
      .from('todos')
      .select()
      .eq('done', false)
      .order('created_at', ascending: false)
      .limit(10);

  for (final todo in todos) {
    print(todo);
  }
}
0
likes
0
points
104
downloads

Documentation

Documentation

Publisher

verified publisherappunvs.com

Weekly Downloads

Dart and Flutter client for Mortar, a mainland-China-friendly Backend-as-a-Service for mobile and web apps.

Homepage
Repository (GitHub)
View/report issues

Topics

#baas #backend #database #realtime #storage

License

unknown (license)

Dependencies

http

More

Packages that depend on mortar_client