create a new client with a configured com.faunadb.common.Connection.
Frees any resources held by the client and close the underlying connection.
Issues multiple queries as a single transaction.
Issues multiple queries as a single transaction.
the queries to run.
A scala.concurrent.Future containing an IndexedSeq of the results of each query. Each result is an instance of faunadb.values.Value, which can be cast to a typed value using the faunadb.values.Field API. If *any* query fails, a failed future is returned.
Issues a query.
Issues a query.
the query to run, created using the query dsl helpers in faunadb.query.
A scala.concurrent.Future containing the query result. The result is an instance of faunadb.values.Result, which can be cast to a typed value using the faunadb.values.Field API. If the query fails, failed future is returned.
Creates a new scope to execute session queries.
Creates a new scope to execute session queries. Queries submited within the session scope will be authenticated with the secret provided. A session client shares its parent's com.faunadb.common.Connection instance and is closed as soon as the session scope ends.
user secret for the session scope
a function that receives a session client
the value produced by the session function
The Scala native client for FaunaDB.
Create a new client using faunadb.FaunaClient.apply.
Query requests are made asynchronously: All methods will return a scala.concurrent.Future.
Example: