Packages

Ash DataLayer for the Sanity.io CMS

Current section

Files

Jump to
ash_sanity lib ash_sanity data_layer info.ex
Raw

lib/ash_sanity/data_layer/info.ex

defmodule AshSanity.DataLayer.Info do
@moduledoc "Introspection functions for AshSanity CMS"
alias Spark.Dsl.Extension
def cms(resource) do
Extension.get_opt(resource, [:sanity], :cms, nil, true)
end
def type(resource) do
Extension.get_opt(resource, [:sanity], :type, nil, true)
end
end