Skip to content

Commit 32e4b78

Browse files
Add datetime support for query param (#27) +semver: minor
1 parent 6640703 commit 32e4b78

16 files changed

+42
-33
lines changed

.editorconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ root = true
88
[*]
99
indent_style = space
1010
insert_final_newline = true
11-
charset = utf-8-bom
11+
charset = utf-8
1212

1313
# Code files
1414
[*.{cs,csx,vb,vbx}]

GraphQL.Query.Builder.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1+
22
Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio 15
44
VisualStudioVersion = 15.0.26124.0

azure-pipelines.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ steps:
2525
inputs:
2626
versionSpec: '5.x'
2727

28-
- task: UseDotNet@2
29-
displayName: 'Use .NET 5 sdk'
30-
inputs:
31-
version: '5.0.x'
32-
3328
- script: dotnet tool restore
3429
displayName: 'dotnet tool restore'
3530

docs/api/graphql.query.builder.querystringbuilder.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,14 @@ public void Clear()
5454
Formats query param.
5555

5656
Returns:
57-
- String: `"value"`
57+
- String: `"foo"`
5858
- Number: `10`
59-
- Boolean: `true` / `false`
59+
- Boolean: `true` or `false`
6060
- Enum: `EnumValue`
61-
- Key value pair: `key:"value"` / `key:10`
62-
- List: `["value1","value2"]` / `[1,2]`
63-
- Dictionary: `{a:"value",b:10}`
61+
- DateTime: `"2022-06-15T13:45:30.0000000Z"`
62+
- Key value pair: `foo:"bar"` or `foo:10` ...
63+
- List: `["foo","bar"]` or `[1,2]` ...
64+
- Dictionary: `{foo:"bar",b:10}`
6465

6566
```csharp
6667
protected internal string FormatQueryParam(object value)

generate-documentation.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
@echo off
2+
dotnet tool restore
23
dotnet build .\src\GraphQL.Query.Builder\GraphQL.Query.Builder.csproj -c Release
3-
dotnet tool run xmldoc2md .\src\GraphQL.Query.Builder\bin\Debug\netstandard2.0\GraphQL.Query.Builder.dll .\docs\api --github-pages --back-button
4+
dotnet tool run xmldoc2md .\src\GraphQL.Query.Builder\bin\Release\netstandard2.0\GraphQL.Query.Builder.dll .\docs\api --github-pages --back-button

sample/Models/Models.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<TargetFramework>netstandard2.0</TargetFramework>
5-
<LangVersion>9.0</LangVersion>
5+
<LangVersion>latest</LangVersion>
66
<IsPackable>false</IsPackable>
77
</PropertyGroup>
88

sample/Pokedex/Pokedex.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net5</TargetFramework>
6-
<LangVersion>9.0</LangVersion>
5+
<TargetFramework>net6.0</TargetFramework>
6+
<LangVersion>latest</LangVersion>
77
</PropertyGroup>
88

99
<ItemGroup>

src/GraphQL.Query.Builder/GraphQL.Query.Builder.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFramework>netstandard2.0</TargetFramework>
4-
<LangVersion>9.0</LangVersion>
4+
<LangVersion>latest</LangVersion>
55
<Version>0.0.0</Version>
66
<Authors>Charles de Vandière</Authors>
77
<Description>A tool to build GraphQL query from a C# model.</Description>

src/GraphQL.Query.Builder/IQueryOf{T}.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Generic;
33
using System.Linq.Expressions;
44

src/GraphQL.Query.Builder/IQueryStringBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22

33
namespace GraphQL.Query.Builder
44
{

0 commit comments

Comments
 (0)