Sanity.mutate

You're seeing just the function mutate, go back to Sanity module for more information.
Link to this function

mutate(mutations, query_params \\ [])

View Source

Specs

mutate([map()], keyword() | map()) :: Sanity.Request.t()

Generates a request for the Mutate endpoint.

Example

Sanity.mutate(
  [
    %{
      create: %{
        _type: "product",
        title: "Test product"
      }
    }
  ],
  return_ids: true
)
|> Sanity.request(config)