firestore_odm_builder 5.2.0 copy "firestore_odm_builder: ^5.2.0" to clipboard
firestore_odm_builder: ^5.2.0 copied to clipboard

Code generator for firestore_odm, the type-safe Firestore ODM for Flutter and Dart. Generates typed queries, patches, aggregates and converters with build_runner.

firestore_odm_builder #

The code generator for firestore_odm, the type-safe Firestore ODM for Flutter and Dart — the maintained successor to cloud_firestore_odm.

flutter pub add firestore_odm cloud_firestore firebase_core
flutter pub add dev:firestore_odm_builder dev:build_runner
dart run build_runner build --delete-conflicting-outputs

It generates, for every @firestoreOdm model and @Schema(), the Firestore converters and the typed filter, order, update and aggregate selectors. Use the same version as firestore_odm.

Migrate from cloud_firestore_odm #

This package also ships a codemod:

dart pub global activate firestore_odm_builder
dart pub global run firestore_odm_builder:migrate           # preview
dart pub global run firestore_odm_builder:migrate --apply   # write

See the migration guide.

0
likes
160
points
799
downloads

Documentation

Documentation
API reference

Publisher

verified publishersylphx.com

Weekly Downloads

Code generator for firestore_odm, the type-safe Firestore ODM for Flutter and Dart. Generates typed queries, patches, aggregates and converters with build_runner.

Repository (GitHub)
View/report issues

Topics

#firestore #odm #code-generation #build-runner #flutter

License

MIT (license)

Dependencies

analyzer, build, code_builder, firestore_odm_annotation, json_annotation, source_gen

More

Packages that depend on firestore_odm_builder