# SPDX-FileCopyrightText: 2020 Zach Daniel
#
# SPDX-License-Identifier: MIT

defmodule AshGraphql.Test.RootLevelErrorsDomain do
  @moduledoc false

  use Ash.Domain,
    extensions: [
      AshGraphql.Domain
    ],
    otp_app: :ash_graphql

  graphql do
    root_level_errors? true
  end

  resources do
    resource(AshGraphql.Test.Comment)
    resource(AshGraphql.Test.CompositePrimaryKey)
    resource(AshGraphql.Test.CompositePrimaryKeyNotEncoded)
    resource(AshGraphql.Test.DoubleRelRecursive)
    resource(AshGraphql.Test.DoubleRelToRecursiveParentOfEmbed)
    resource(AshGraphql.Test.MapTypes)
    resource(AshGraphql.Test.MultitenantPostTag)
    resource(AshGraphql.Test.MultitenantTag)
    resource(AshGraphql.Test.NoGraphql)
    resource(AshGraphql.Test.NoObject)
    resource(AshGraphql.Test.NonIdPrimaryKey)
    resource(AshGraphql.Test.Post)
    resource(AshGraphql.Test.PostTag)
    resource(AshGraphql.Test.RelayPostTag)
    resource(AshGraphql.Test.RelayTag)
    resource(AshGraphql.Test.SponsoredComment)
    resource(AshGraphql.Test.Tag)
    resource(AshGraphql.Test.User)
    resource(AshGraphql.Test.Channel)
    resource(AshGraphql.Test.Message)
    resource(AshGraphql.Test.TextMessage)
    resource(AshGraphql.Test.ImageMessage)
  end
end
