Current section

Files

Jump to
ex_shopify_schema lib ex_shopify_schema graphql comment.ex
Raw

lib/ex_shopify_schema/graphql/comment.ex

defmodule ExShopifySchema.Graphql.Comment do
@moduledoc "A comment on an article."
use ExShopifySchema.Generator.Graphql.Schema
@primary_key false
typed_embedded_schema do
embeds_one :article, ExShopifySchema.Graphql.Article, []
embeds_one :author, ExShopifySchema.Graphql.CommentAuthor, []
loadable_field :body, ExShopifySchema.Graphql.String, []
loadable_field :body_html, ExShopifySchema.Graphql.HTML, []
loadable_field :created_at, ExShopifySchema.Graphql.DateTime, []
embeds_one :events, ExShopifySchema.Graphql.EventConnection, []
loadable_field :id, ExShopifySchema.Graphql.ID, []
loadable_field :ip, ExShopifySchema.Graphql.String, []
loadable_field :is_published, ExShopifySchema.Graphql.Boolean, []
loadable_field :published_at, ExShopifySchema.Graphql.DateTime, []
loadable_field :status, ExShopifySchema.EctoTypes.Enum, [values: [spam: "SPAM", removed: "REMOVED", published: "PUBLISHED", unapproved: "UNAPPROVED", pending: "PENDING"]]
loadable_field :updated_at, ExShopifySchema.Graphql.DateTime, []
loadable_field :user_agent, ExShopifySchema.Graphql.String, []
end
end