Current section

Files

Jump to
ex_shopify_schema lib ex_shopify_schema graphql article.ex
Raw

lib/ex_shopify_schema/graphql/article.ex

defmodule ExShopifySchema.Graphql.Article do
@moduledoc "An article in the blogging system."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
embeds_one :author, ExShopifySchema.Graphql.ArticleAuthor, []
embeds_one :blog, ExShopifySchema.Graphql.Blog, []
loadable_field :body, ExShopifySchema.Graphql.HTML, []
embeds_one :comments, ExShopifySchema.Graphql.CommentConnection, []
embeds_one :comments_count, ExShopifySchema.Graphql.Count, []
loadable_field :created_at, ExShopifySchema.Graphql.DateTime, []
loadable_field :default_cursor, ExShopifySchema.Graphql.String, []
embeds_one :events, ExShopifySchema.Graphql.EventConnection, []
loadable_field :handle, ExShopifySchema.Graphql.String, []
loadable_field :id, ExShopifySchema.Graphql.ID, []
embeds_one :image, ExShopifySchema.Graphql.Image, []
loadable_field :is_published, ExShopifySchema.Graphql.Boolean, []
embeds_one :metafield, ExShopifySchema.Graphql.Metafield, []
embeds_one :metafield_definitions, ExShopifySchema.Graphql.MetafieldDefinitionConnection, []
embeds_one :metafields, ExShopifySchema.Graphql.MetafieldConnection, []
loadable_field :published_at, ExShopifySchema.Graphql.DateTime, []
loadable_field :summary, ExShopifySchema.Graphql.HTML, []
loadable_field :tags, {:array, ExShopifySchema.Graphql.String}, []
loadable_field :template_suffix, ExShopifySchema.Graphql.String, []
loadable_field :title, ExShopifySchema.Graphql.String, []
embeds_many :translations, ExShopifySchema.Graphql.Translation, []
loadable_field :updated_at, ExShopifySchema.Graphql.DateTime, []
end
end