We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 058e1f6 commit 99294bcCopy full SHA for 99294bc
code/session-8/GraphQL/Types/AttendeeType.cs
@@ -35,14 +35,14 @@ public async Task<IEnumerable<Session>> GetSessionsAsync(
35
SessionByIdDataLoader sessionById,
36
CancellationToken cancellationToken)
37
{
38
- int[] speakerIds = await dbContext.Attendees
+ int[] sessionIds = await dbContext.Attendees
39
.Where(a => a.Id == attendee.Id)
40
.Include(a => a.SessionsAttendees)
41
.SelectMany(a => a.SessionsAttendees.Select(t => t.SessionId))
42
.ToArrayAsync();
43
44
- return await sessionById.LoadAsync(speakerIds, cancellationToken);
+ return await sessionById.LoadAsync(sessionIds, cancellationToken);
45
}
46
47
48
-}
+}
0 commit comments