ash_graphql/test/support/domain.ex
Zach Daniel 4ff56a3c59
Add test for mutation with read action in simple data layer resource issue (#170)
Co-authored-by: Junil Chon <jichon@gmail.com>
2024-06-02 08:08:46 -04:00

49 lines
1.5 KiB
Elixir

defmodule AshGraphql.Test.Domain do
@moduledoc false
use Ash.Domain,
extensions: [
AshGraphql.Domain
],
otp_app: :ash_graphql
graphql do
queries do
get AshGraphql.Test.Comment, :get_comment, :read
list AshGraphql.Test.Post, :post_score, :score
end
end
resources do
resource(AshGraphql.Test.Actor)
resource(AshGraphql.Test.ActorAgent)
resource(AshGraphql.Test.Agent)
resource(AshGraphql.Test.Award)
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.Movie)
resource(AshGraphql.Test.MovieActor)
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.Review)
resource(AshGraphql.Test.SponsoredComment)
resource(AshGraphql.Test.Tag)
resource(AshGraphql.Test.User)
resource(AshGraphql.Test.Channel)
resource(AshGraphql.Test.ChannelSimple)
resource(AshGraphql.Test.Message)
resource(AshGraphql.Test.TextMessage)
resource(AshGraphql.Test.ImageMessage)
end
end