IzumiSy/elm-firestore/1.0.0

NOTE: the latest version is 13.0.0

Firestore.Config

Configuration types for Firestore

type Config

Data type for Firestore configuration

This type internally has all information which is required to send requests to Firestore through REST API.

new :
{ apiKey : String
, project : String
}
-> Config

Creates a new Config

endpoint : String -> Config -> String

Builds an endpoint string without path

Specifies authorization header.

withDatabase : String -> Config -> Config

Specifies database ID to connect to.

httpHeader : Config -> List Header

Extract authorization header as Http.Header. The return type is aimed to be used with Http.task.