Current section

Files

Jump to
ex_shopify_schema lib ex_shopify_schema graphql publishable.ex
Raw

lib/ex_shopify_schema/graphql/publishable.ex

defmodule ExShopifySchema.Graphql.Publishable do
@moduledoc "Represents a resource that can be published to a channel.\nA publishable resource can be either a Product or Collection."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
embeds_one :available_publications_count, ExShopifySchema.Graphql.Count, []
loadable_field :publication_count, ExShopifySchema.Graphql.Int, []
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 :unpublished_channels, ExShopifySchema.Graphql.ChannelConnection, []
embeds_one :unpublished_publications, ExShopifySchema.Graphql.PublicationConnection, []
end
end