From 9dcf9c7e6b125882ac1121efd60711ce77b7b22c Mon Sep 17 00:00:00 2001 From: Clement Date: Fri, 6 Dec 2024 16:33:24 +1100 Subject: [PATCH] Regenerated GraphQL entities with GraphQLSchemaGenerator v1.7 Incremented version to 6.22 --- Directory.Packages.props | 2 +- .../Entities/GraphQL/GraphQLSchema.generated.cs | 16 ++++++++++++++++ ShopifySharp/ShopifySharp.csproj | 2 +- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index a43d1587c..0b020b036 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -24,6 +24,6 @@ - + \ No newline at end of file diff --git a/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs b/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs index 5e627268b..668163fe0 100644 --- a/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs +++ b/ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs @@ -67,38 +67,54 @@ public interface IEdge : IEdge public interface IConnection { PageInfo? pageInfo { get; set; } + + Type GetNodeType(); + IEnumerable? GetNodes(); } public interface IConnectionWithNodes : IConnection { IEnumerable? nodes { get; set; } + + IEnumerable? IConnection.GetNodes() => this.nodes; } public interface IConnectionWithNodes : IConnectionWithNodes { IEnumerable? IConnectionWithNodes.nodes { get => this.nodes; set => this.nodes = (IEnumerable? )value; } new IEnumerable? nodes { get; set; } + + Type IConnection.GetNodeType() => typeof(TNode); } public interface IConnectionWithEdges : IConnection { IEnumerable? edges { get; set; } + + Type GetEdgeType(); + IEnumerable? IConnection.GetNodes() => this.edges?.Select(e => e.node); } public interface IConnectionWithEdges : IConnectionWithEdges { IEnumerable? IConnectionWithEdges.edges { get => this.edges; set => this.edges = (IEnumerable>? )value; } new IEnumerable>? edges { get; set; } + + Type IConnection.GetNodeType() => typeof(TNode); } public interface IConnectionWithEdges : IConnectionWithEdges where TEdge : IEdge { IEnumerable>? IConnectionWithEdges.edges { get => this.edges?.Cast>(); set => this.edges = value?.Cast(); } new IEnumerable? edges { get; set; } + + Type IConnectionWithEdges.GetEdgeType() => typeof(TEdge); } public interface IConnectionWithNodesAndEdges : IConnectionWithEdges, IConnectionWithNodes where TEdge : IEdge { + Type IConnection.GetNodeType() => typeof(TNode); + IEnumerable? IConnection.GetNodes() => this.nodes ?? this.edges?.Select(e => e.node); } /// diff --git a/ShopifySharp/ShopifySharp.csproj b/ShopifySharp/ShopifySharp.csproj index b5bc88609..1813be05c 100644 --- a/ShopifySharp/ShopifySharp.csproj +++ b/ShopifySharp/ShopifySharp.csproj @@ -3,7 +3,7 @@ net6.0;netstandard2.0;net8.0 ShopifySharp ShopifySharp - 6.21.0 + 6.22.0 true snupkg Latest