IzumiSy/elm-firestore/4.0.1

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

httpHeader : Config -> List Header

Extracts authorization with bearer prefix as Http.Header.

Specifies Firebase Authorization token.

A Firebase Authorization token can be obtained through firebase.User#getIdToken method. You can pass it into Elm application through Flag or Ports to call this function with.

withDatabase : String -> Config -> Config

Specifies database ID to connect to.