ExShopifySchema.EctoTypes.Enum (ExShopifySchema v2025.4.3)

View Source

Ecto type for GraphQL Enum types. It's a workaround for backward-compatibility.

You can control how the enum values are handled by:

config :ex_shopify_schema, :ecto_types, enum: :string

The default is :atom, which means that the enum values are treated as atom.

Summary

Functions

cast(arg1, arg2)

Callback implementation for Ecto.ParameterizedType.cast/2.

dump(arg1, arg2, arg3)

Callback implementation for Ecto.ParameterizedType.dump/3.

dump_values(arg1, arg2)

See Ecto.Enum.dump_values/2.

format(arg1)

Callback implementation for Ecto.ParameterizedType.format/1.

init(arg1)

Callback implementation for Ecto.ParameterizedType.init/1.

load(arg1, arg2, arg3)

Callback implementation for Ecto.ParameterizedType.load/3.

mappings(arg1, arg2)

See Ecto.Enum.mappings/2.

type(arg1)

Callback implementation for Ecto.ParameterizedType.type/1.

values(arg1, arg2)

See Ecto.Enum.values/2.