Skip to content

Commit 4710e87

Browse files
committed
https://github.com/bonfire-networks/bonfire-app/issues/916
1 parent df5f8bc commit 4710e87

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

priv/templates/lib/bonfire/api/graphql/graphql_schema.ex

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,15 +256,16 @@ if Application.compile_env(:bonfire_api_graphql, :modularity) != :disabled do
256256
see https://hexdocs.pm/absinthe/1.4.6/ecto.html#dataloader
257257
"""
258258
def context(ctx) do
259-
# IO.inspect(ctx: ctx)
260259
loader =
261-
Dataloader.add_source(
262-
Dataloader.new(),
260+
Dataloader.new()
261+
|> Dataloader.add_source(
263262
Needle.Pointer,
264263
Bonfire.Common.Needles.dataloader(ctx)
265264
)
266-
267-
# |> Dataloader.add_source(Bonfire.Data.Social.Posts, Bonfire.Common.Needles.dataloader(ctx) )
265+
|> Dataloader.add_source(
266+
:user_interactions,
267+
Bonfire.Social.API.UserInteractionsDataloader.data()
268+
)
268269

269270
Map.put(ctx, :loader, loader)
270271
end

0 commit comments

Comments
 (0)