Skip to content

Commit dbc4478

Browse files
authored
Merge pull request #46 from Linq2GraphQL/add-byte
Added Byte Mapper
2 parents 02ddff2 + de289f2 commit dbc4478

File tree

25 files changed

+78
-69
lines changed

25 files changed

+78
-69
lines changed

src/Linq2GraphQL.Generator/GraphQLSchema/Helpers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ public static class Helpers
1717
{ "Uri", new ValueTuple<string, Type>("Uri", typeof(Uri)) },
1818
{ "DateTime", new ValueTuple<string, Type>("DateTimeOffset", typeof(DateTimeOffset)) },
1919
{ "Decimal", new ValueTuple<string, Type>("decimal", typeof(decimal)) },
20-
{ "TimeSpan", new ValueTuple<string, Type>("TimeSpan", typeof(TimeSpan)) }
20+
{ "TimeSpan", new ValueTuple<string, Type>("TimeSpan", typeof(TimeSpan)) },
21+
{ "Byte", new ValueTuple<string, Type>("byte", typeof(byte)) },
2122
};
2223

2324

test/Linq2GraphQL.TestClientNullable/Generated/Client/MutationMethods.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using System.Collections.Generic;

test/Linq2GraphQL.TestClientNullable/Generated/Client/QueryMethods.cs

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using System.Collections.Generic;
@@ -22,6 +20,15 @@ public QueryMethods(GraphClient client)
2220
this.client = client;
2321
}
2422

23+
public GraphQuery<Item> Item()
24+
{
25+
var arguments = new List<ArgumentValue>
26+
{
27+
};
28+
29+
return new GraphQuery<Item>(client, "item", OperationType.Query, arguments);
30+
}
31+
2532
public GraphQuery<List<Customer>> CustomerList()
2633
{
2734
var arguments = new List<ArgumentValue>

test/Linq2GraphQL.TestClientNullable/Generated/Client/SampleNullableClient.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Client/SampleNullableClientExtensions.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Enums/AddressType.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Enums/CustomerStatus.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using Linq2GraphQL.Client;

test/Linq2GraphQL.TestClientNullable/Generated/Inputs/AddressInput.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using System;

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using System;

test/Linq2GraphQL.TestClientNullable/Generated/Inputs/ItemInput.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
21
//---------------------------------------------------------------------
32
// This code was automatically generated by Linq2GraphQL
43
// Please don't edit this file
54
// Github:https://github.com/linq2graphql/linq2graphql.client
65
// Url: https://linq2graphql.com
7-
// Generation Date: den 8 september 2024 17:02:30
86
//---------------------------------------------------------------------
97

108
using System;
@@ -31,4 +29,11 @@ public required string ItemName
3129
set => SetValue("itemName", value);
3230
}
3331

32+
[JsonPropertyName("data")]
33+
public List<byte>? Data
34+
{
35+
get => GetValue<List<byte>?>("data");
36+
set => SetValue("data", value);
37+
}
38+
3439
}

0 commit comments

Comments
 (0)