You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -570,15 +574,14 @@ var batchResults = await "https://graphql-star-wars.azurewebsites.net/api/graphq
570
574
query ($first: Int) {
571
575
characters(first: $first) {
572
576
nodes {
573
-
personalIdentifier
574
-
name
575
-
height
576
-
}
577
-
}
578
-
579
-
charactersCount: characters {
577
+
personalIdentifier
578
+
name
579
+
height
580
+
}
581
+
}
582
+
charactersCount: characters {
580
583
totalCount
581
-
}
584
+
}
582
585
}
583
586
")
584
587
.SetGraphQLVariables(new { first=2 })
@@ -598,39 +601,38 @@ You can always request the raw Json response that was returned by the GraphQL se
598
601
Simply use the respective API based on if you want are using System.Text.Json (via `.ReceiveGraphQLRawSystemTextJsonResponse()`)
599
602
or Newtonsoft.Json (via `.ReceiveGraphQLRawNewtonsoftJsonResponse()`).
600
603
601
-
*NOTE: You cannot receive `Newtonsoft.Json` raw json if the request was initialzied and executing using `System.Text.Json` serailizer and vice-versa;
604
+
*NOTE: You cannot receive `Newtonsoft.Json` raw json if the request was initialzied and executing using the `System.Text.Json` serailizer and vice-versa;
602
605
a runtime exception will be thrown becuase this would be a large performance impact that would likely go unnoticed if it was allowed.*
603
606
604
607
```csharp
605
-
606
608
//For System.Text.Json Raw GraphQL response processing you will get a `JsonObject` result back for RAW Json handling!
@@ -676,7 +678,7 @@ the `JsonDefaults` enum flags that can be set on the default configuration using
676
678
-`EnableScreamingCaseEnums` -- Ensures that Enum strings are automatically converted to SCREAMING_CASE as is the default for GraphQL enums (e.g. HotChocolate GraphQL Server).
677
679
- This has no effect if the above `EnableStringEnumHandling` is disabled; unless you manually implement the screaming case naming policies/strategy (e.g. `FlurlGraphQLSystemTextJsonScreamingCaseNamingPolicy`).
678
680
-`EnableCamelCaseSerialization` -- Ensures that the Json serialization is compatible with GraphQL JSON conventions which use camelCase and are usually case sensitive (e.g. HotChocolate GraphQL Server).
679
-
-`EnableCaseInsensitiveJsonHandling` -- Ensures that Json de-serialziation is not case sensitive because C# conventions for `PascalCase` will nearly always fail due to JSON conventions for `camelCase`.
681
+
-`EnableCaseInsensitiveJsonHandling` -- Ensures that Json de-serialziation is not case sensitive because otherwise C# conventions for `PascalCase` will nearly always fail due to JSON conventions for `camelCase`.
680
682
- NOTE: This *ONLY* applies to `System.Text.Json` because case-insensitive matching cannot be disabled with `Newtonsoft.Json`.
681
683
-`EnableAll` -- a convenience flag used by default to ensure all of the above are enabled to greatly simplify the common pitfalls for Json handlingw between C# & GraphQL.
682
684
@@ -689,6 +691,7 @@ and how the response is parsed when being de-serailized back into your model.*
689
691
```csharp
690
692
//Control how default Json Options/Settings are initialzied (for either System.Text.Json or Newtonsoft)
691
693
//NOTE: If Enabled, these global GraphQL Defaults will be enforced on any settings specified, even at the Request level.
694
+
//NOTE: These are usually be set in your program.cs or other bootstrapping code on application startup.
0 commit comments