diff --git a/lib/graphql/schema/event.ex b/lib/graphql/schema/event.ex index a6d5865bc..e3cd9f31a 100644 --- a/lib/graphql/schema/event.ex +++ b/lib/graphql/schema/event.ex @@ -56,7 +56,10 @@ defmodule Mobilizon.GraphQL.Schema.EventType do description: "The event's organizer (as a person)" ) - field(:attributed_to, :actor, description: "Who the event is attributed to (often a group)") + field(:attributed_to, :actor, + resolve: dataloader(Actors), + description: "Who the event is attributed to (often a group)" + ) field(:tags, list_of(:tag), resolve: &Tag.list_tags_for_event/3,