Current section
Files
Jump to
Current section
Files
lib/ex_shopify_schema/graphql/attribute.ex
defmodule ExShopifySchema.Graphql.Attribute do
@moduledoc "A custom property. Attributes are used to store additional information about a Shopify resource, such as\nproducts, customers, or orders. Attributes are stored as key-value pairs.\n\nFor example, a list of attributes might include whether a customer is a first-time buyer (`\"customer_first_order\": \"true\"`),\nwhether an order is gift-wrapped (`\"gift_wrapped\": \"true\"`), a preferred delivery date\n(`\"preferred_delivery_date\": \"2025-10-01\"`), the discount applied (`\"loyalty_discount_applied\": \"10%\"`), and any\nnotes provided by the customer (`\"customer_notes\": \"Please leave at the front door\"`)."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
loadable_field :key, ExShopifySchema.Graphql.String, []
loadable_field :value, ExShopifySchema.Graphql.String, []
end
end