Skip to content

Commit 7c42424

Browse files
committed
Stop returning IQueryableList for unions
1 parent 707f959 commit 7c42424

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Octokit.GraphQL.Core.Generation/InterfaceGenerator.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,6 @@ private static string GenerateField(FieldModel field)
7575
GenerateListMethod(field, reduced) :
7676
GenerateListField(field, reduced);
7777
}
78-
else if (reduced.Kind == TypeKind.Union)
79-
{
80-
// HACK: Returning IEnumerable<object> for unions for now until we decide how to handle them.
81-
reduced = TypeModel.List(reduced);
82-
result += method ?
83-
GenerateListMethod(field, reduced) :
84-
GenerateListField(field, reduced);
85-
}
8678
else
8779
{
8880
result += method ?

Octokit.GraphQL/Model/AuditEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public interface IAuditEntry : IQueryableValue<IAuditEntry>, IQueryableInterface
2121
/// <summary>
2222
/// The user who initiated the action
2323
/// </summary>
24-
IQueryableList<AuditEntryActor> Actor { get; }
24+
AuditEntryActor Actor { get; }
2525

2626
/// <summary>
2727
/// The IP address of the actor

0 commit comments

Comments
 (0)