View Source Sanity

Package Documentation CI

A client library for the Sanity CMS API.

installation

Installation

The package can be installed by adding sanity to your list of dependencies in mix.exs:

def deps do
  [
    {:sanity, "~> 0.12"}
  ]
end

examples

Examples

Sanity.query(~S'*[_type == "product"]')
|> Sanity.request(project_id: "abc", dataset: "production")

supported-endpoints

Supported endpoints

  • [x] Assets
  • [x] Doc
  • [ ] Export
  • [ ] History
  • [ ] Listen
  • [x] Mutate
  • [ ] Projects
  • [x] Query