Skip to content

Commit

Permalink
Stop returning IQueryableList for unions
Browse files Browse the repository at this point in the history
  • Loading branch information
jcansdale committed Mar 18, 2020
1 parent 707f959 commit 7c42424
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions Octokit.GraphQL.Core.Generation/InterfaceGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,6 @@ private static string GenerateField(FieldModel field)
GenerateListMethod(field, reduced) :
GenerateListField(field, reduced);
}
else if (reduced.Kind == TypeKind.Union)
{
// HACK: Returning IEnumerable<object> for unions for now until we decide how to handle them.
reduced = TypeModel.List(reduced);
result += method ?
GenerateListMethod(field, reduced) :
GenerateListField(field, reduced);
}
else
{
result += method ?
Expand Down
2 changes: 1 addition & 1 deletion Octokit.GraphQL/Model/AuditEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public interface IAuditEntry : IQueryableValue<IAuditEntry>, IQueryableInterface
/// <summary>
/// The user who initiated the action
/// </summary>
IQueryableList<AuditEntryActor> Actor { get; }
AuditEntryActor Actor { get; }

/// <summary>
/// The IP address of the actor
Expand Down

0 comments on commit 7c42424

Please sign in to comment.