An extensible interface for a set of Fauna endpoints.

Leverage the [key: string]: URL; field to extend to other endpoints.

interface Endpoints {
    default: URL;
    local: URL;
    localhost: URL;
    [key: string]: URL;
}

Indexable

  • [key: string]: URL

    Any other endpoint you want your client to support. For example, if you run all requests through a proxy configure it here. Most clients will not need to leverage this ability.

Properties

default: URL

Fauna's default endpoint.

local: URL

An endpoint for interacting with local instance of Fauna (e.g. one running in a local docker container).

localhost: URL

An alias for local.