Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump GraphQL.SystemTextJson and GraphQL.MicrosoftDI from 7.8.0 to 8.2.1 in /src #184

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/GraphQL.IntrospectionModel.Tests/ASTConverterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -407,6 +407,7 @@ public void Should_Build_Schema_With_QueryType()
schema {
query: MyQuery
}

""");
}

Expand All @@ -427,6 +428,7 @@ public void Should_Build_Schema_With_MutationType()
schema {
mutation: MyMutation
}

""");
}

Expand All @@ -447,6 +449,7 @@ public void Should_Build_Schema_With_SubscriptionType()
schema {
subscription: MySubscription
}

""");
}

Expand Down Expand Up @@ -537,6 +540,7 @@ public void Should_Build_Empty_Enum()
string sdl1 = schema.Print();
sdl1.ShouldBe("""
enum Color

""");
}

Expand All @@ -558,6 +562,7 @@ public void Should_Build_Empty_Union()
string sdl1 = schema.Print();
sdl1.ShouldBe("""
union Reason

""");
}

Expand All @@ -579,6 +584,7 @@ public void Should_Build_Empty_Input()
string sdl1 = schema.Print();
sdl1.ShouldBe("""
input Person

""");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ type Mutation {
}

input Person {
name: String!
name: String
age: Int!
jobTitle: String!
jobTitle: String
}

type Query {
Expand All @@ -45,4 +45,4 @@ type Query {

type Subscription {
values: [Int]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ type Mutation {
}

input Person {
name: String!
name: String
age: Int!
isDeveloper: Boolean @deprecated(reason: "Use job title instead")
isManager: Boolean @deprecated(reason: "Use job title instead")
jobTitle: String!
jobTitle: String
}

type Query {
Expand All @@ -47,4 +47,4 @@ type Query {

type Subscription {
values: [Int]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ type Mutation {
}

input Person {
name: String!
name: String
age: Int!
jobTitle: String!
jobTitle: String
}

type Query {
Expand All @@ -45,4 +45,4 @@ type Query {

type Subscription {
values: [Int]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ type Mutation {
}

input Person {
name: String!
name: String
age: Int!
isDeveloper: Boolean @deprecated(reason: "Use job title instead")
isManager: Boolean @deprecated(reason: "Use job title instead")
jobTitle: String!
jobTitle: String
}

type Query {
Expand All @@ -47,4 +47,4 @@ type Query {

type Subscription {
values: [Int]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ input PersonFilter {

type Query {
persons(filter: PersonFilter @deprecated(reason: "Do not use this arg")): [Person]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ directive @my_with_args(if: Boolean) on
| QUERY

directive @your_with_args(if: Boolean) repeatable on
| ENUM
| ENUM
2 changes: 1 addition & 1 deletion src/GraphQL.IntrospectionModel.Tests/Files/enums.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ enum Color {
enum Status @v2 {
Ok
Error
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ enum Color {
enum Status {
Ok
Error
}
}
2 changes: 1 addition & 1 deletion src/GraphQL.IntrospectionModel.Tests/Files/escaped.graphql
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type Query {
field1: String @deprecated(reason: "Reason that should be escaped: \", \\, \b, \f, \n, \r, \t \u0005 ")
field2: String @deprecated(reason: "Reason that should be escaped: \", \\, \b, \f, \n, \r, \t \u0005 ")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ interface IPerson2

interface IPerson3

type Person implements IPerson1 & IPerson2 & IPerson3
type Person implements IPerson1 & IPerson2 & IPerson3
2 changes: 1 addition & 1 deletion src/GraphQL.IntrospectionModel.Tests/Files/person.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ schema {
type Person {
Age: Int!
Name: String
}
}
2 changes: 1 addition & 1 deletion src/GraphQL.IntrospectionModel.Tests/Files/scalars.graphql
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
scalar Xml

scalar JSON @some
scalar JSON @some
2 changes: 1 addition & 1 deletion src/GraphQL.IntrospectionModel.Tests/Files/test1.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ type Query {
checkControlWithoutCheckRequired: String @control(getOperInfo: "getMessage")
checkPaintedTokenWithPermission(scalarInput: Int, paintedToken: PaintedTokenInput): String @authorize(domain: 1, operationId: 10, operationCode: "TST.CheckAuthorization") @checkPaintedToken(pathToClientId: "paintedToken.client.id", domain: 1, operationId: 10, operationCode: "TST.CheckAuthorization")
checkPaintedTokenWithoutPermission(scalarInput: Int, clientId: Int): String @checkPaintedToken(pathToClientId: "clientId") @authorize(domain: 1, operationId: 10, operationCode: "TST.CheckAuthorization")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="GraphQL.MicrosoftDI" Version="7.8.0" />
<PackageReference Include="GraphQL.SystemTextJson" Version="7.8.0" />
<PackageReference Include="GraphQL.MicrosoftDI" Version="8.2.1" />
<PackageReference Include="GraphQL.SystemTextJson" Version="8.2.1" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="9.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="Shouldly" Version="4.2.1" />
<PackageReference Include="PublicApiGenerator" Version="11.1.0" />
<PackageReference Include="xunit" Version="2.8.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.0">
<PackageReference Include="xunit" Version="2.7.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.5.7">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ internal sealed class Query : ObjectGraphType
{
public Query()
{
Field<StringGraphType>("hello").Resolve(_ => "Hello, World!").Directive("author", "name", "Alice");
Field<NonNullGraphType<StringGraphType>>("word").Resolve(_ => "abcdef").Directive("revert").Directive("revert");
Field<StringGraphType>("hello").Resolve(_ => "Hello, World!").ApplyDirective("author", "name", "Alice");
Field<NonNullGraphType<StringGraphType>>("word").Resolve(_ => "abcdef").ApplyDirective("revert").ApplyDirective("revert");
Field<CatOrDogGraphType>("catOrDog");
}
}
Expand Down
Loading