As FaunaDB documentation, it seems that there is no dart API nor REST API. Also, I can't find the FaunaDB package in the Flutter Packages.
Is there any way to use the FaunaDB on the flutter?
As FaunaDB documentation, it seems that there is no dart API nor REST API. Also, I can't find the FaunaDB package in the Flutter Packages.
Is there any way to use the FaunaDB on the flutter?
I think the easiest way to use Flutter with FaunaDB is to use FaunaDB's GraphQL interface and Dart package graphql_flutter.
I recently managed to read data from FaunaDB using graphql_flutter, and will update this post when I have tested it more.
Currently we don't offer first party support for flutter. You can build a third-party driver for Dart based on our current open source drivers if you'd like. They do use json/http under the hood. If you are targeting android another option might be to fork the java driver and switch out http clients to be android friendly and use a platform channel.
Dart is able to use javascript libraries How to use JavaScript libraries in your Dart applications
You can simply use the javascript driver https://github.com/fauna/faunadb-js
Recently there was a new package published that can help you to use faunaDB with dart/flutter: faunadb_http This library also provides query classes that closely mimic FQL functions.