2024-04-02 07:03:06 +13:00
|
|
|
defmodule AshGraphql.Test.Domain do
|
|
|
|
@moduledoc false
|
|
|
|
|
|
|
|
use Ash.Domain,
|
|
|
|
extensions: [
|
|
|
|
AshGraphql.Domain
|
|
|
|
],
|
|
|
|
otp_app: :ash_graphql
|
|
|
|
|
2024-05-25 07:51:19 +12:00
|
|
|
graphql do
|
|
|
|
queries do
|
|
|
|
get AshGraphql.Test.Comment, :get_comment, :read
|
|
|
|
list AshGraphql.Test.Post, :post_score, :score
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2024-04-02 07:03:06 +13:00
|
|
|
resources do
|
2024-05-27 01:50:54 +12:00
|
|
|
resource(AshGraphql.Test.Actor)
|
|
|
|
resource(AshGraphql.Test.ActorAgent)
|
|
|
|
resource(AshGraphql.Test.Agent)
|
|
|
|
resource(AshGraphql.Test.Award)
|
2024-04-02 07:03:06 +13:00
|
|
|
resource(AshGraphql.Test.Comment)
|
|
|
|
resource(AshGraphql.Test.CompositePrimaryKey)
|
|
|
|
resource(AshGraphql.Test.CompositePrimaryKeyNotEncoded)
|
|
|
|
resource(AshGraphql.Test.DoubleRelRecursive)
|
|
|
|
resource(AshGraphql.Test.DoubleRelToRecursiveParentOfEmbed)
|
|
|
|
resource(AshGraphql.Test.MapTypes)
|
2024-05-27 01:50:54 +12:00
|
|
|
resource(AshGraphql.Test.Movie)
|
|
|
|
resource(AshGraphql.Test.MovieActor)
|
2024-04-02 07:03:06 +13:00
|
|
|
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)
|
2024-05-27 01:50:54 +12:00
|
|
|
resource(AshGraphql.Test.Review)
|
2024-04-02 07:03:06 +13:00
|
|
|
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
|