Skip to content

Commit

Permalink
Merge pull request #1115 from clement911/master
Browse files Browse the repository at this point in the history
Regenerated GraphQL entities with GraphQLSchemaGenerator v1.7
  • Loading branch information
clement911 authored Dec 6, 2024
2 parents c8950e2 + 9dcf9c7 commit 86a5c8d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
<PackageVersion Include="System.Net.Http" Version="4.3.4" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
<PackageVersion Include="Wish.GraphQLSchemaGenerator" Version="1.6.0" />
<PackageVersion Include="Wish.GraphQLSchemaGenerator" Version="1.7.0" />
</ItemGroup>
</Project>
16 changes: 16 additions & 0 deletions ShopifySharp/Entities/GraphQL/GraphQLSchema.generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,38 +67,54 @@ public interface IEdge<TNode> : 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<TNode> : IConnectionWithNodes
{
IEnumerable? IConnectionWithNodes.nodes { get => this.nodes; set => this.nodes = (IEnumerable<TNode>? )value; }
new IEnumerable<TNode>? nodes { get; set; }

Type IConnection.GetNodeType() => typeof(TNode);
}

public interface IConnectionWithEdges : IConnection
{
IEnumerable<IEdge>? edges { get; set; }

Type GetEdgeType();
IEnumerable? IConnection.GetNodes() => this.edges?.Select(e => e.node);
}

public interface IConnectionWithEdges<TNode> : IConnectionWithEdges
{
IEnumerable<IEdge>? IConnectionWithEdges.edges { get => this.edges; set => this.edges = (IEnumerable<IEdge<TNode>>? )value; }
new IEnumerable<IEdge<TNode>>? edges { get; set; }

Type IConnection.GetNodeType() => typeof(TNode);
}

public interface IConnectionWithEdges<TEdge, TNode> : IConnectionWithEdges<TNode> where TEdge : IEdge<TNode>
{
IEnumerable<IEdge<TNode>>? IConnectionWithEdges<TNode>.edges { get => this.edges?.Cast<IEdge<TNode>>(); set => this.edges = value?.Cast<TEdge>(); }
new IEnumerable<TEdge>? edges { get; set; }

Type IConnectionWithEdges.GetEdgeType() => typeof(TEdge);
}

public interface IConnectionWithNodesAndEdges<TEdge, TNode> : IConnectionWithEdges<TEdge, TNode>, IConnectionWithNodes<TNode> where TEdge : IEdge<TNode>
{
Type IConnection.GetNodeType() => typeof(TNode);
IEnumerable? IConnection.GetNodes() => this.nodes ?? this.edges?.Select(e => e.node);
}

///<summary>
Expand Down
2 changes: 1 addition & 1 deletion ShopifySharp/ShopifySharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<TargetFrameworks>net6.0;netstandard2.0;net8.0</TargetFrameworks>
<AssemblyName>ShopifySharp</AssemblyName>
<RootNamespace>ShopifySharp</RootNamespace>
<VersionPrefix>6.21.0</VersionPrefix>
<VersionPrefix>6.22.0</VersionPrefix>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<LangVersion>Latest</LangVersion>
Expand Down

0 comments on commit 86a5c8d

Please sign in to comment.