Current section
Files
Jump to
Current section
Files
lib/ex_shopify_schema/graphql/weight.ex
defmodule ExShopifySchema.Graphql.Weight do
@moduledoc "A weight, which includes a numeric value and a unit of measurement."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
loadable_field :unit, ExShopifySchema.EctoTypes.Enum, [values: [kilograms: "KILOGRAMS", grams: "GRAMS", pounds: "POUNDS", ounces: "OUNCES"]]
loadable_field :value, ExShopifySchema.Graphql.Float, []
end
end