Skip to content

Commit fc55aab

Browse files
committed
Add GetRequestId method for GraphQLException and bump project version to 2.7.0
1 parent 7418f95 commit fc55aab

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

ShopifyNet/Extensions.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ public static string GetRequestId<T>(this GraphQLResponse<T> response)
1414
return response.HttpResponse.GetRequestId();
1515
}
1616

17+
public static string GetRequestId(this GraphQLException ex)
18+
{
19+
return ex.HttpResponse?.GetRequestId();
20+
}
21+
1722
public static string GetRequestId(this HttpResponse response)
1823
{
1924
return response.Headers.TryGetValues("X-Request-Id", out var headerValues) ? headerValues.First() : null;

ShopifyNet/ShopifyNet.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<PackageProjectUrl>https://github.com/Wish-Org/ShopifyNet</PackageProjectUrl>
66
<RepositoryUrl>https://github.com/Wish-Org/ShopifyNet</RepositoryUrl>
77
<Description>.NET utilities for Shopify GraphQL</Description>
8-
<Version>2.6.0</Version>
8+
<Version>2.7.0</Version>
99
<PackageTags>shopify graphql types classes schema generator strongly typed</PackageTags>
1010

1111
<!-- Ensure the XML doc file is generated -->

0 commit comments

Comments
 (0)