Warning:
Fauna is decommissioning FQL v4 on June 30, 2025.

This driver is not compatible with FQL v10, the latest version. Fauna accounts created after August 21, 2024 must use FQL v10.
Ensure you migrate existing projects to the official v10 driver by the v4 EOL date: https://github.com/fauna/fauna-jvm.

For more information, see the v4 end of life (EOL) announcement and related FAQ.

p

faunadb

package faunadb

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. All

Type Members

  1. final case class ErrorResponse (status: Int, error: String) extends FaunaResponse with Product with Serializable
  2. class FaunaClient extends AnyRef

    The Scala native client for FaunaDB.

    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:

    case class User(ref: RefV, name: String, age: Int)
    
    val client = FaunaClient(secret = "myKeySecret")
    
    val fut = client.query(Get(Ref(Class("users"), "123")))
    val instance = Await.result(fut, 5.seconds)
    
    val userCast =
      for {
        ref <- instance("ref").to[RefV]
        name <- instance("data", "name").to[String]
        age <- instance("data", "age").to[Int]
      } yield {
        User(ref, name, age)
      }
    
    userCast.get
  3. sealed abstract class FaunaResponse extends AnyRef
  4. final class NoContentResponse extends FaunaResponse
  5. case class QueryError (position: Seq[String], code: String, description: String, failures: IndexedSeq[ValidationFailure]) extends Product with Serializable
  6. final case class QueryErrorResponse (status: Int, errors: IndexedSeq[QueryError]) extends FaunaResponse with Product with Serializable
  7. final case class QueryResponse (status: Int, body: ObjectNode) extends FaunaResponse with Product with Serializable
  8. final case class ResourceResponse (status: Int, resource: JsonNode, references: ObjectNode) extends FaunaResponse with Product with Serializable

Value Members

  1. object FaunaClient

    Companion object to the FaunaClient class.

  2. object QueryError extends Serializable

Ungrouped