Skip to content

Releases: charlesdevandiere/graphql-query-builder-dotnet

2.2.1

28 Oct 15:15
4709ec6
Compare
Choose a tag to compare
update System.Text.Json (#46)

2.2.0

25 Jul 15:12
330a214
Compare
Choose a tag to compare

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

22 Jul 07:44
3759302
Compare
Choose a tag to compare

Added

  • null query param support
  • Nullable reference types

2.0.2

24 Aug 08:45
fd6ca38
Compare
Choose a tag to compare
update sample dependencies (#40)

2.0.1

05 Sep 07:15
1fe99c2
Compare
Choose a tag to compare

Fix:

2.0.0

21 Apr 11:24
481cc90
Compare
Choose a tag to compare

Breaking Changes

Deletions

  • Dawn.Guard dependency.

1.6.0

04 Apr 08:29
13f530e
Compare
Choose a tag to compare

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

01 Apr 08:43
e9516f2
Compare
Choose a tag to compare

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

31 Mar 04:55
32e4b78
Compare
Choose a tag to compare

Added

  • DateTime support for query param #27

1.3.0

15 Mar 12:59
6640703
Compare
Choose a tag to compare

Added

QueryStringBuilder.FormatQueryParam is now virtual. You can override it to change query param formatting (see: CustomQueryStringBuilderTests.cs). Thanks to @sokolowskip #24