Classes

The following classes are available globally.

  • Client represents a HTTP client for a FaunaDB server. It provides methods, such as query and query(batch:) that you can use to execute queries in your server.

    Note

    This class is meant to be reused as much as possible. If you need to connect to the same server but using a different key’s secret, use newSessionClient method instead of creating a new Client instance.
    See more

    Declaration

    Swift

    public final class Client
  • Represent the result of an asynchronous query executed by FaunaDB.

    Note

    All methods available to handle QueryResult success or failure will optionally receive a DispatchQueue. Remember, the only DispatchQueue allowed to update the UI is DispatchQueue.main.
    See more

    Declaration

    Swift

    public class QueryResult<T>