Current section

Files

Jump to
ex_shopify_schema lib ex_shopify_schema graphql collection.ex
Raw

lib/ex_shopify_schema/graphql/collection.ex

defmodule ExShopifySchema.Graphql.Collection do
@moduledoc "Represents a group of products that can be displayed in online stores and other sales channels in categories, which makes it easy for customers to find them. For example, an athletics store might create different collections for running attire, shoes, and accessories.\n\nCollections can be defined by conditions, such as whether they match certain product tags. These are called smart or automated collections.\n\nCollections can also be created for a custom group of products. These are called custom or manual collections."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
embeds_one :available_publications_count, ExShopifySchema.Graphql.Count, []
loadable_field :description, ExShopifySchema.Graphql.String, []
loadable_field :description_html, ExShopifySchema.Graphql.HTML, []
embeds_one :events, ExShopifySchema.Graphql.EventConnection, []
embeds_one :feedback, ExShopifySchema.Graphql.ResourceFeedback, []
loadable_field :handle, ExShopifySchema.Graphql.String, []
loadable_field :has_product, ExShopifySchema.Graphql.Boolean, []
loadable_field :id, ExShopifySchema.Graphql.ID, []
embeds_one :image, ExShopifySchema.Graphql.Image, []
loadable_field :legacy_resource_id, ExShopifySchema.Graphql.UnsignedInt64, []
embeds_one :metafield, ExShopifySchema.Graphql.Metafield, []
embeds_one :metafield_definitions, ExShopifySchema.Graphql.MetafieldDefinitionConnection, []
embeds_one :metafields, ExShopifySchema.Graphql.MetafieldConnection, []
embeds_one :products, ExShopifySchema.Graphql.ProductConnection, []
embeds_one :products_count, ExShopifySchema.Graphql.Count, []
loadable_field :publication_count, ExShopifySchema.Graphql.Int, []
embeds_one :publications, ExShopifySchema.Graphql.CollectionPublicationConnection, []
loadable_field :published_on_channel, ExShopifySchema.Graphql.Boolean, []
loadable_field :published_on_current_channel, ExShopifySchema.Graphql.Boolean, []
loadable_field :published_on_current_publication, ExShopifySchema.Graphql.Boolean, []
loadable_field :published_on_publication, ExShopifySchema.Graphql.Boolean, []
embeds_one :resource_publications, ExShopifySchema.Graphql.ResourcePublicationConnection, []
embeds_one :resource_publications_count, ExShopifySchema.Graphql.Count, []
embeds_one :resource_publications_v2, ExShopifySchema.Graphql.ResourcePublicationV2Connection, []
embeds_one :rule_set, ExShopifySchema.Graphql.CollectionRuleSet, []
embeds_one :seo, ExShopifySchema.Graphql.SEO, []
loadable_field :sort_order, Ecto.Enum, [values: [alpha_asc: "ALPHA_ASC", alpha_desc: "ALPHA_DESC", best_selling: "BEST_SELLING", created: "CREATED", created_desc: "CREATED_DESC", manual: "MANUAL", price_asc: "PRICE_ASC", price_desc: "PRICE_DESC"]]
loadable_field :storefront_id, ExShopifySchema.Graphql.StorefrontID, []
loadable_field :template_suffix, ExShopifySchema.Graphql.String, []
loadable_field :title, ExShopifySchema.Graphql.String, []
embeds_many :translations, ExShopifySchema.Graphql.Translation, []
embeds_one :unpublished_channels, ExShopifySchema.Graphql.ChannelConnection, []
embeds_one :unpublished_publications, ExShopifySchema.Graphql.PublicationConnection, []
loadable_field :updated_at, ExShopifySchema.Graphql.DateTime, []
end
end