@@ -51,25 +51,25 @@ query foo(
51
51
nullableIntIdGivenNull: nullableIntId(id: $nullIntId)
52
52
optionalIntId(id: $intId)
53
53
optionalIntIdGivenNothing: optionalIntId
54
- intIdList(id : [$intId])
55
- nullableIntIdList(id : [$intId, $nullIntId])
56
- optionalIntIdList(id : [$intId])
54
+ intIdList(ids : [$intId])
55
+ nullableIntIdList(ids : [$intId, $nullIntId])
56
+ optionalIntIdList(ids : [$intId])
57
57
stringId(id: $stringId)
58
58
nullableStringId(id: $stringId)
59
59
nullableStringIdGivenNull: nullableStringId(id: $nullStringId)
60
60
optionalStringId(id: $stringId)
61
61
optionalStringIdGivenNothing: optionalStringId
62
- stringIdList(id : [$stringId])
63
- nullableStringIdList(id : [$stringId, $nullStringId])
64
- optionalStringIdList(id : [$stringId])
62
+ stringIdList(ids : [$stringId])
63
+ nullableStringIdList(ids : [$stringId, $nullStringId])
64
+ optionalStringIdList(ids : [$stringId])
65
65
guidId(id: $guidId)
66
66
nullableGuidId(id: $guidId)
67
67
nullableGuidIdGivenNull: nullableGuidId(id: $nullGuidId)
68
68
optionalGuidId(id: $guidId)
69
69
optionalGuidIdGivenNothing: optionalGuidId
70
- guidIdList(id : [$guidId $guidId])
71
- nullableGuidIdList(id : [$guidId $nullGuidId $guidId])
72
- optionalGuidIdList(id : [$guidId $guidId])
70
+ guidIdList(ids : [$guidId $guidId])
71
+ nullableGuidIdList(ids : [$guidId $nullGuidId $guidId])
72
+ optionalGuidIdList(ids : [$guidId $guidId])
73
73
customId(id: $customId)
74
74
nullableCustomId(id: $customId)
75
75
nullableCustomIdGivenNull: nullableCustomId(id: $nullCustomId)
@@ -106,7 +106,7 @@ public async Task InterceptedId_On_Arguments()
106
106
OperationRequestBuilder . New ( )
107
107
. SetDocument ( @"query foo {
108
108
interceptedId(id: 1)
109
- interceptedIds(id : [1, 2])
109
+ interceptedIds(ids : [1, 2])
110
110
}" )
111
111
. Build ( ) ) ;
112
112
@@ -464,56 +464,53 @@ public async Task EnsureIdIsOnlyAppliedOnce()
464
464
[ SuppressMessage ( "Performance" , "CA1822:Mark members as static" ) ]
465
465
public class Query
466
466
{
467
- public string IntId ( [ ID ] int id ) => id . ToString ( ) ;
468
- public string IntIdList ( [ ID ] int [ ] id ) =>
469
- string . Join ( ", " , id . Select ( t => t . ToString ( ) ) ) ;
467
+ public int IntId ( [ ID ] int id ) => id ;
470
468
471
- public string NullableIntId ( [ ID ] int ? id ) => id ? . ToString ( ) ?? "null" ;
472
- public string NullableIntIdList ( [ ID ] int ? [ ] id ) =>
473
- string . Join ( ", " , id . Select ( t => t ? . ToString ( ) ?? "null" ) ) ;
469
+ public int [ ] IntIdList ( [ ID ] int [ ] ids ) => ids ;
474
470
475
- public string OptionalIntId ( [ DefaultValue ( "UXVlcnk6MA==" ) ] [ ID ] Optional < int > id ) =>
476
- id . HasValue ? id . Value . ToString ( ) : "NO VALUE" ;
477
- public string OptionalIntIdList ( [ DefaultValue ( new int [ ] { } ) ] [ ID ] Optional < int [ ] > id ) =>
478
- id . HasValue ? string . Join ( ", " , id . Value . Select ( t => t . ToString ( ) ) ) : "NO VALUE" ;
471
+ public int ? NullableIntId ( [ ID ] int ? id ) => id ;
472
+
473
+ public int ? [ ] NullableIntIdList ( [ ID ] int ? [ ] ids ) => ids ;
474
+
475
+ public int ? OptionalIntId ( [ DefaultValue ( "UXVlcnk6MA==" ) ] [ ID ] Optional < int > id )
476
+ => id . HasValue ? id . Value : null ;
477
+
478
+ public int [ ] ? OptionalIntIdList ( [ DefaultValue ( new int [ ] { } ) ] [ ID ] Optional < int [ ] > ids )
479
+ => ids . HasValue ? ids . Value : null ;
479
480
480
481
public string StringId ( [ ID ] string id ) => id ;
481
- public string StringIdList ( [ ID ] string [ ] id ) =>
482
- string . Join ( ", " , id . Select ( t => t . ToString ( ) ) ) ;
483
-
484
- public string NullableStringId ( [ ID ] string ? id ) => id ?? "null" ;
485
- public string NullableStringIdList ( [ ID ] string ? [ ] id ) =>
486
- string . Join ( ", " , id . Select ( t => t ? . ToString ( ) ?? "null" ) ) ;
487
-
488
- public string OptionalStringId (
489
- [ DefaultValue ( "UXVlcnk6" ) ] [ ID ] Optional < string > id ) =>
490
- id . HasValue ? id . Value : "NO VALUE" ;
491
- public string OptionalStringIdList (
492
- [ DefaultValue ( new string [ ] { } ) ] [ ID ] Optional < string [ ] > id ) =>
493
- id . HasValue ? string . Join ( ", " , id . Value ) : "NO VALUE" ;
494
-
495
- public string GuidId ( [ ID ] Guid id ) => id . ToString ( ) ;
496
- public string GuidIdList ( [ ID ] IReadOnlyList < Guid > id ) =>
497
- string . Join ( ", " , id . Select ( t => t . ToString ( ) ) ) ;
498
-
499
- public string NullableGuidId ( [ ID ] Guid ? id ) => id ? . ToString ( ) ?? "null" ;
500
- public string NullableGuidIdList ( [ ID ] IReadOnlyList < Guid ? > id ) =>
501
- string . Join ( ", " , id . Select ( t => t ? . ToString ( ) ?? "null" ) ) ;
502
-
503
- public string OptionalGuidId (
504
- [ DefaultValue ( "UXVlcnk6AAAAAAAAAAAAAAAAAAAAAA==" ) ] [ ID ] Optional < Guid > id ) =>
505
- id . HasValue ? id . Value . ToString ( ) : "NO VALUE" ;
506
- public string OptionalGuidIdList (
507
- [ DefaultValue ( new object [ ] { } ) ] [ ID ] Optional < Guid [ ] > id ) =>
508
- id . HasValue ? string . Join ( ", " , id . Value . Select ( t => t . ToString ( ) ) ) : "NO VALUE" ;
509
-
510
- public string InterceptedId ( [ InterceptedID ( "Query" ) ] [ ID ] int id ) => id . ToString ( ) ;
511
-
512
- public string InterceptedIds ( [ InterceptedID ( "Query" ) ] [ ID ] int [ ] id ) =>
513
- string . Join ( ", " , id . Select ( t => t . ToString ( ) ) ) ;
514
-
515
- public string CustomId ( [ ID ] StronglyTypedId id ) =>
516
- id . ToString ( ) ;
482
+
483
+ public string [ ] StringIdList ( [ ID ] string [ ] ids ) => ids ;
484
+
485
+ public string ? NullableStringId ( [ ID ] string ? id ) => id ;
486
+
487
+ public string ? [ ] NullableStringIdList ( [ ID ] string ? [ ] ids ) => ids ;
488
+
489
+ public string ? OptionalStringId ( [ DefaultValue ( "UXVlcnk6" ) ] [ ID ] Optional < string > id )
490
+ => id . HasValue ? id . Value : null ;
491
+
492
+ public string [ ] ? OptionalStringIdList ( [ DefaultValue ( new string [ ] { } ) ] [ ID ] Optional < string [ ] > ids )
493
+ => ids . HasValue ? ids . Value : null ;
494
+
495
+ public Guid GuidId ( [ ID ] Guid id ) => id ;
496
+
497
+ public IReadOnlyList < Guid > GuidIdList ( [ ID ] IReadOnlyList < Guid > ids ) => ids ;
498
+
499
+ public Guid ? NullableGuidId ( [ ID ] Guid ? id ) => id ;
500
+
501
+ public IReadOnlyList < Guid ? > NullableGuidIdList ( [ ID ] IReadOnlyList < Guid ? > ids ) => ids ;
502
+
503
+ public Guid ? OptionalGuidId ( [ DefaultValue ( "UXVlcnk6AAAAAAAAAAAAAAAAAAAAAA==" ) ] [ ID ] Optional < Guid > id )
504
+ => id . HasValue ? id . Value : null ;
505
+
506
+ public Guid [ ] ? OptionalGuidIdList ( [ DefaultValue ( new object [ ] { } ) ] [ ID ] Optional < Guid [ ] > ids )
507
+ => ids . HasValue ? ids . Value : null ;
508
+
509
+ public int InterceptedId ( [ InterceptedID ( "Query" ) ] [ ID ] int id ) => id ;
510
+
511
+ public int [ ] InterceptedIds ( [ InterceptedID ( "Query" ) ] [ ID ] int [ ] ids ) => ids ;
512
+
513
+ public string CustomId ( [ ID ] StronglyTypedId id ) => id . ToString ( ) ;
517
514
518
515
public string NullableCustomId ( [ ID ] StronglyTypedId ? id ) =>
519
516
id ? . ToString ( ) ?? "null" ;
0 commit comments