The following classes are available globally.
Clientrepresents a HTTP client for a FaunaDB server. It provides methods, such as
query(batch:)that you can use to execute queries in your server.
NoteThis 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
newSessionClientmethod instead of creating a new
public final class Client
Represent the result of an asynchronous query executed by FaunaDB.
NoteAll methods available to handle
QueryResultsuccess or failure will optionally receive a
DispatchQueue. Remember, the only
DispatchQueueallowed to update the UI is
public class QueryResult<T>