DatoCMS.GraphQLClient.Backends.StandardClient (datocms_graphql_client v0.17.2)

A basic client for DatoCMS GraphQL requests

Summary

Functions

configuration(options \\ [])

configure(options \\ [])

do_fetch_all(key, paginated, params, options)

fetch(key, query_body, params \\ %{}, options \\ [])

fetch!(key, query, params \\ %{}, options \\ [])

fetch_all(key, query, params \\ %{}, options \\ [])

fetch_all!(key, query, params \\ %{}, options \\ [])

fetch_all_localized(key, locale, query, params \\ %{}, options \\ [])

fetch_all_localized!(key, locale, query, params \\ %{}, options \\ [])

fetch_localized(key, locale, query, params \\ %{}, options \\ [])

fetch_localized!(key, locale, query, params \\ %{}, options \\ [])

fetch_query(key, query)

live?()

query(query, params \\ %{}, options \\ [])

  • params - an optional Map of query parameters
  • options - an optional Keyword of options which are passed on to Neuron
    • url - the endpoint (must be set here, or via configure/1)
    • headers - a keyword of request headers

query!(query, params \\ %{}, options \\ [])