mortar_client 0.2.0
mortar_client: ^0.2.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);
}
}