Current section
Files
Jump to
Current section
Files
lib/ex_shopify_schema/graphql/metafield.ex
defmodule ExShopifySchema.Graphql.Metafield do
@moduledoc "Metafields enable you to attach additional information to a Shopify resource, such as a [Product](https://shopify.dev/api/admin-graphql/latest/objects/product) or a [Collection](https://shopify.dev/api/admin-graphql/latest/objects/collection).\nFor more information about where you can attach metafields refer to [HasMetafields](https://shopify.dev/api/admin/graphql/reference/common-objects/HasMetafields).\nSome examples of the data that metafields enable you to store are specifications, size charts, downloadable documents, release dates, images, or part numbers.\nMetafields are identified by an owner resource, namespace, and key. and store a value along with type information for that value."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
loadable_field :created_at, ExShopifySchema.Graphql.DateTime, []
embeds_one :definition, ExShopifySchema.Graphql.MetafieldDefinition, []
loadable_field :description, ExShopifySchema.Graphql.String, []
loadable_field :id, ExShopifySchema.Graphql.ID, []
loadable_field :key, ExShopifySchema.Graphql.String, []
loadable_field :legacy_resource_id, ExShopifySchema.Graphql.UnsignedInt64, []
loadable_field :namespace, ExShopifySchema.Graphql.String, []
loadable_field :owner, ExShopifySchema.EctoTypes.Interface, [interface_type: ExShopifySchema.Graphql.HasMetafields, implements: [ExShopifySchema.Graphql.AppInstallation, ExShopifySchema.Graphql.CartTransform, ExShopifySchema.Graphql.Collection, ExShopifySchema.Graphql.Company, ExShopifySchema.Graphql.CompanyLocation, ExShopifySchema.Graphql.Customer, ExShopifySchema.Graphql.CustomerSegmentMember, ExShopifySchema.Graphql.DeliveryCustomization, ExShopifySchema.Graphql.DiscountAutomaticNode, ExShopifySchema.Graphql.DiscountCodeNode, ExShopifySchema.Graphql.DiscountNode, ExShopifySchema.Graphql.DraftOrder, ExShopifySchema.Graphql.FulfillmentConstraintRule, ExShopifySchema.Graphql.Image, ExShopifySchema.Graphql.Location, ExShopifySchema.Graphql.Market, ExShopifySchema.Graphql.MediaImage, ExShopifySchema.Graphql.Order, ExShopifySchema.Graphql.PaymentCustomization, ExShopifySchema.Graphql.Product, ExShopifySchema.Graphql.ProductVariant, ExShopifySchema.Graphql.Shop, ExShopifySchema.Graphql.Validation]]
loadable_field :owner_type, ExShopifySchema.EctoTypes.Enum, [values: [api_permission: "API_PERMISSION", company: "COMPANY", company_location: "COMPANY_LOCATION", payment_customization: "PAYMENT_CUSTOMIZATION", validation: "VALIDATION", customer: "CUSTOMER", delivery_customization: "DELIVERY_CUSTOMIZATION", draftorder: "DRAFTORDER", market: "MARKET", carttransform: "CARTTRANSFORM", collection: "COLLECTION", media_image: "MEDIA_IMAGE", productimage: "PRODUCTIMAGE", product: "PRODUCT", productvariant: "PRODUCTVARIANT", article: "ARTICLE", blog: "BLOG", page: "PAGE", fulfillment_constraint_rule: "FULFILLMENT_CONSTRAINT_RULE", order_routing_location_rule: "ORDER_ROUTING_LOCATION_RULE", discount: "DISCOUNT", order: "ORDER", location: "LOCATION", shop: "SHOP"]]
loadable_field :reference, ExShopifySchema.EctoTypes.Union, [possible_types: [ExShopifySchema.Graphql.Collection, ExShopifySchema.Graphql.Company, ExShopifySchema.Graphql.Customer, ExShopifySchema.Graphql.GenericFile, ExShopifySchema.Graphql.MediaImage, ExShopifySchema.Graphql.Metaobject, ExShopifySchema.Graphql.Model3d, ExShopifySchema.Graphql.OnlineStorePage, ExShopifySchema.Graphql.Order, ExShopifySchema.Graphql.Product, ExShopifySchema.Graphql.ProductVariant, ExShopifySchema.Graphql.TaxonomyValue, ExShopifySchema.Graphql.Video]]
embeds_one :references, ExShopifySchema.Graphql.MetafieldReferenceConnection, []
loadable_field :type, ExShopifySchema.Graphql.String, []
loadable_field :updated_at, ExShopifySchema.Graphql.DateTime, []
loadable_field :value, ExShopifySchema.Graphql.String, []
end
end