Skip to content

Commit 91cc6b2

Browse files
committed
Added failing test for multilevel select fail
1 parent ee426c8 commit 91cc6b2

32 files changed

+241
-231
lines changed

test/Linq2GraphQL.TestClient/Generated/Inputs/CustomerFilterInput.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,11 @@ public ListFilterInputTypeOfOrderFilterInput Orders
5050
set => SetValue("orders", value);
5151
}
5252

53+
[JsonPropertyName("address")]
54+
public AddressFilterInput Address
55+
{
56+
get => GetValue<AddressFilterInput>("address");
57+
set => SetValue("address", value);
58+
}
59+
5360
}

test/Linq2GraphQL.TestClient/Generated/Inputs/CustomerInput.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,11 @@ public List<OrderInput> Orders
3636
set => SetValue("orders", value);
3737
}
3838

39+
[JsonPropertyName("address")]
40+
public AddressInput Address
41+
{
42+
get => GetValue<AddressInput>("address");
43+
set => SetValue("address", value);
44+
}
45+
3946
}

test/Linq2GraphQL.TestClient/Generated/Inputs/CustomerSortInput.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,11 @@ public SortEnumType? Status
2929
set => SetValue("status", value);
3030
}
3131

32+
[JsonPropertyName("address")]
33+
public AddressSortInput Address
34+
{
35+
get => GetValue<AddressSortInput>("address");
36+
set => SetValue("address", value);
37+
}
38+
3239
}

test/Linq2GraphQL.TestClient/Generated/Inputs/InputFactory.cs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,15 @@ public static CustomerFilterInput Orders(this CustomerFilterInput input, Action<
262262
return input;
263263
}
264264

265+
public static CustomerFilterInput Address(this CustomerFilterInput input, Action<AddressFilterInput> mod)
266+
{
267+
var filter = new AddressFilterInput();
268+
mod ??= _ => { };
269+
mod(filter);
270+
input.Address = filter;
271+
return input;
272+
}
273+
265274
}
266275

267276
public static class CustomerInputExtensions
@@ -296,6 +305,15 @@ public static CustomerInput Orders(this CustomerInput input, Action<List<OrderIn
296305
return input;
297306
}
298307

308+
public static CustomerInput Address(this CustomerInput input, Action<AddressInput> mod)
309+
{
310+
var filter = new AddressInput();
311+
mod ??= _ => { };
312+
mod(filter);
313+
input.Address = filter;
314+
return input;
315+
}
316+
299317
}
300318

301319
public static class CustomerSortInputExtensions
@@ -321,6 +339,15 @@ public static CustomerSortInput Status(this CustomerSortInput input, SortEnumTyp
321339
return input;
322340
}
323341

342+
public static CustomerSortInput Address(this CustomerSortInput input, Action<AddressSortInput> mod)
343+
{
344+
var filter = new AddressSortInput();
345+
mod ??= _ => { };
346+
mod(filter);
347+
input.Address = filter;
348+
return input;
349+
}
350+
324351
}
325352

326353
public static class CustomerStatusOperationFilterInputExtensions

test/Linq2GraphQL.TestClient/Generated/Types/Address.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,10 @@ public partial class Address : GraphQLTypeBase
1111
[JsonPropertyName("name")]
1212
public string Name { get; set; }
1313

14-
1514
[JsonPropertyName("street")]
1615
public string Street { get; set; }
1716

18-
1917
[JsonPropertyName("postalCode")]
2018
public string PostalCode { get; set; }
2119

22-
23-
24-
25-
26-
2720
}

test/Linq2GraphQL.TestClient/Generated/Types/AnimalsConnection.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,13 @@ public partial class AnimalsConnection : GraphQLTypeBase, Linq2GraphQL.Client.Co
1111
[JsonPropertyName("pageInfo")]
1212
public Linq2GraphQL.Client.Common.PageInfo PageInfo { get; set; }
1313

14-
1514
[JsonPropertyName("edges")]
1615
public List<AnimalsEdge> Edges { get; set; }
1716

18-
1917
[JsonPropertyName("nodes")]
2018
public List<IAnimal> Nodes { get; set; }
2119

22-
2320
[JsonPropertyName("totalCount")]
2421
public int TotalCount { get; set; }
2522

26-
27-
28-
29-
30-
3123
}

test/Linq2GraphQL.TestClient/Generated/Types/AnimalsEdge.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ public partial class AnimalsEdge : GraphQLTypeBase
1111
[JsonPropertyName("cursor")]
1212
public string Cursor { get; set; }
1313

14-
1514
[JsonPropertyName("node")]
1615
public IAnimal Node { get; set; }
1716

18-
19-
20-
21-
22-
2317
}

test/Linq2GraphQL.TestClient/Generated/Types/CollectionSegmentInfo.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ public partial class CollectionSegmentInfo : GraphQLTypeBase
1111
[JsonPropertyName("hasNextPage")]
1212
public bool HasNextPage { get; set; }
1313

14-
1514
[JsonPropertyName("hasPreviousPage")]
1615
public bool HasPreviousPage { get; set; }
1716

18-
19-
20-
21-
22-
2317
}

test/Linq2GraphQL.TestClient/Generated/Types/Customer.cs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,16 @@ public partial class Customer : GraphQLTypeBase
1111
[JsonPropertyName("customerId")]
1212
public Guid CustomerId { get; set; }
1313

14-
1514
[JsonPropertyName("customerName")]
1615
public string CustomerName { get; set; }
1716

18-
1917
[JsonPropertyName("status")]
2018
public CustomerStatus Status { get; set; }
2119

22-
2320
[JsonPropertyName("orders")]
2421
public List<Order> Orders { get; set; }
2522

26-
27-
28-
29-
23+
[JsonPropertyName("address")]
24+
public Address Address { get; set; }
3025

3126
}

test/Linq2GraphQL.TestClient/Generated/Types/Item.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@ public partial class Item : GraphQLTypeBase
1111
[JsonPropertyName("itemId")]
1212
public string ItemId { get; set; }
1313

14-
1514
[JsonPropertyName("itemName")]
1615
public string ItemName { get; set; }
1716

18-
19-
20-
21-
22-
2317
}

0 commit comments

Comments
 (0)