Releases: charlesdevandiere/graphql-query-builder-dotnet
Releases · charlesdevandiere/graphql-query-builder-dotnet
2.2.1
2.2.0
Added
- Union support with:
IQuery<TSource> AddUnion<TUnionType>(string typeName, Func<IQuery<TUnionType>, IQuery<TUnionType>> build)
IQuery<TSource> AddUnion<TUnionType>(Func<IQuery<TUnionType>, IQuery<TUnionType>> build)
2.1.0
Added
null
query param support- Nullable reference types
2.0.2
update sample dependencies (#40)
2.0.1
Fix:
- The Formatter from Query was not passed to the QueryStringBuilder. #35 Thanks @VictoriaKalinichenko!
2.0.0
Breaking Changes
- Newtonsoft.Json dependency is removed. Use GraphQL.Query.Builder.Formatter.NewtonsoftJson or GraphQL.Query.Builder.Formatter.SystemTextJson instead.
QueryOptions.Formatter
is nowFunc<PropertyInfo, string>
.QueryFormatters.CamelCaseFormatter
is replaced byCamelCasePropertyNameFormatter.Format
Deletions
- Dawn.Guard dependency.
1.6.0
Added
String arguments are now encoded:
string json = "{ \"foo\": \"bar\" }";
var query = new Query<object>("foo")
.AddArgument("json", json)
.AddField("foo")
.Build();
// foo(json:"{ \"foo\": \"bar\" }"){foo}
1.5.0
Added
Query<TSource>.AddArguments<TArguments>(TArguments arguments)
method now supports inner object:
var query = new Query<Truck>("truck")
.AddArguments(new {
id = "yk8h4vn0",
km = 2100,
imported = true,
page = new { from = 1, to = 100 }
});
Thanks @carloshenriquecarniatto!
1.4.0
1.3.0
Added
QueryStringBuilder.FormatQueryParam
is now virtual
. You can override it to change query param formatting (see: CustomQueryStringBuilderTests.cs). Thanks to @sokolowskip #24