Current section

Files

Jump to
ex_shopify_schema lib ex_shopify_schema graphql channel.ex
Raw

lib/ex_shopify_schema/graphql/channel.ex

defmodule ExShopifySchema.Graphql.Channel do
@moduledoc "A channel represents an app where you sell a group of products and collections.\nA channel can be a platform or marketplace such as Facebook or Pinterest, an online store, or POS."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
embeds_one :app, ExShopifySchema.Graphql.App, []
embeds_one :collection_publications_v3, ExShopifySchema.Graphql.ResourcePublicationConnection, []
embeds_one :collections, ExShopifySchema.Graphql.CollectionConnection, []
loadable_field :handle, ExShopifySchema.Graphql.String, []
loadable_field :has_collection, ExShopifySchema.Graphql.Boolean, []
loadable_field :id, ExShopifySchema.Graphql.ID, []
loadable_field :name, ExShopifySchema.Graphql.String, []
embeds_many :navigation_items, ExShopifySchema.Graphql.NavigationItem, []
loadable_field :overview_path, ExShopifySchema.Graphql.URL, []
embeds_one :product_publications, ExShopifySchema.Graphql.ProductPublicationConnection, []
embeds_one :product_publications_v3, ExShopifySchema.Graphql.ResourcePublicationConnection, []
embeds_one :products, ExShopifySchema.Graphql.ProductConnection, []
embeds_one :products_count, ExShopifySchema.Graphql.Count, []
loadable_field :supports_future_publishing, ExShopifySchema.Graphql.Boolean, []
end
end