From 7c42424e40aab1cfd89481fbdcb032de4f9c9938 Mon Sep 17 00:00:00 2001 From: Jamie Cansdale Date: Wed, 18 Mar 2020 00:40:03 +0000 Subject: [PATCH] Stop returning IQueryableList for unions --- Octokit.GraphQL.Core.Generation/InterfaceGenerator.cs | 8 -------- Octokit.GraphQL/Model/AuditEntry.cs | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Octokit.GraphQL.Core.Generation/InterfaceGenerator.cs b/Octokit.GraphQL.Core.Generation/InterfaceGenerator.cs index c5576881..18e9c653 100644 --- a/Octokit.GraphQL.Core.Generation/InterfaceGenerator.cs +++ b/Octokit.GraphQL.Core.Generation/InterfaceGenerator.cs @@ -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 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 ? diff --git a/Octokit.GraphQL/Model/AuditEntry.cs b/Octokit.GraphQL/Model/AuditEntry.cs index 2ddf40bc..4a95cf13 100644 --- a/Octokit.GraphQL/Model/AuditEntry.cs +++ b/Octokit.GraphQL/Model/AuditEntry.cs @@ -21,7 +21,7 @@ public interface IAuditEntry : IQueryableValue, IQueryableInterface /// /// The user who initiated the action /// - IQueryableList Actor { get; } + AuditEntryActor Actor { get; } /// /// The IP address of the actor