Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions src/All.slnx
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
<Project Path="HotChocolate/Core/test/Subscriptions.RabbitMQ.Tests/HotChocolate.Subscriptions.RabbitMQ.Tests.csproj" />
<Project Path="HotChocolate/Core/test/Subscriptions.Redis.Tests/HotChocolate.Subscriptions.Redis.Tests.csproj" />
<Project Path="HotChocolate/Core/test/Subscriptions.Tests/HotChocolate.Subscriptions.Tests.csproj" />
<Project Path="HotChocolate/Core/test/Types.Abstractions.Tests/HotChocolate.Types.Abstractions.Tests.csproj" />
<Project Path="HotChocolate/Core/test/Types.Analyzers.Integration.Tests/HotChocolate.Types.Analyzers.Integration.Tests.csproj" />
<Project Path="HotChocolate/Core/test/Types.Analyzers.Tests/HotChocolate.Types.Analyzers.Tests.csproj" />
<Project Path="HotChocolate/Core/test/Types.CursorPagination.Tests/HotChocolate.Types.CursorPagination.Tests.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@ public sealed class _Service
{
[GraphQLName(WellKnownFieldNames.Sdl)]
public string GetSdl(Schema schema)
=> SchemaPrinter.Print(schema);
=> schema.ToString();
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ schema
query: Query
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type Product
@key(fields: "id")
@key(fields: "sku package")
Expand All @@ -24,25 +35,20 @@ type ProductVariation {
id: ID!
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar FieldSet

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on OBJECT | FIELD_DEFINITION

Expand All @@ -59,9 +65,3 @@ directive @link(

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION

"Scalar representing a set of fields."
scalar FieldSet

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ schema
query: Query
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type Product
@key(fields: "id")
@key(fields: "sku package")
Expand All @@ -24,25 +35,20 @@ type ProductVariation {
id: ID!
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar FieldSet

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on OBJECT | FIELD_DEFINITION

Expand All @@ -59,9 +65,3 @@ directive @link(

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION

"Scalar representing a set of fields."
scalar FieldSet

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ schema
query: Query
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type Product
@key(fields: "id")
@key(fields: "sku package")
Expand All @@ -24,25 +35,20 @@ type ProductVariation {
id: ID!
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar FieldSet

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on OBJECT | FIELD_DEFINITION

Expand All @@ -59,9 +65,3 @@ directive @link(

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION

"Scalar representing a set of fields."
scalar FieldSet

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@ schema
query: Query
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type Product
@key(fields: "id")
@key(fields: "sku package")
Expand All @@ -24,25 +35,20 @@ type ProductVariation {
id: ID!
}

type Query {
product(id: ID!): Product
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "email") {
email: ID! @external
totalProductsCreated: Int @external
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = Product | User

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar FieldSet

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on OBJECT | FIELD_DEFINITION

Expand All @@ -59,9 +65,3 @@ directive @link(

"Used to annotate the expected returned fieldset from a field on a base type that is guaranteed to be selectable by the federation gateway."
directive @provides(fields: FieldSet!) on FIELD_DEFINITION

"Scalar representing a set of fields."
scalar FieldSet

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ type Query {
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "id") {
id: Int!
idCode: String! @external
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type User @key(fields: "id") {
id: Int!
idCode: String! @external
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = User

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar _FieldSet

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ type Query {
_entities(representations: [_Any!]!): [_Entity]!
}

type User @key(fields: "id") {
id: Int
idCode: String @external
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type User @key(fields: "id") {
id: Int
idCode: String @external
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = User

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar _FieldSet

"Directive to indicate that a field is owned by another service, for example via Apollo federation."
directive @external on FIELD_DEFINITION

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,23 @@ type QueryOfTestTypePropertyDirective {
_entities(representations: [_Any!]!): [_Entity]!
}

type TestTypePropertyDirective @key(fields: "id") {
id: Int!
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type TestTypePropertyDirective @key(fields: "id") {
id: Int!
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = TestTypePropertyDirective

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar _FieldSet

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ type QueryOfTestTypePropertyDirectives {
_entities(representations: [_Any!]!): [_Entity]!
}

type TestTypePropertyDirectives @key(fields: "id name") {
id: Int!
name: String!
}

"This type provides a field named sdl: String! which exposes the SDL of the service's schema. This SDL (schema definition language) is a printed version of the service's schema including the annotations of federation directives. This SDL does not include the additions of the federation spec."
type _Service {
sdl: String!
}

type TestTypePropertyDirectives @key(fields: "id name") {
id: Int!
name: String!
}

"Union of all types that key directive applied. This information is needed by the Apollo federation gateway."
union _Entity = TestTypePropertyDirectives

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE

"The _Any scalar is used to pass representations of entities from external services into the root _entities field for execution. Validation of the _Any scalar is done by matching the __typename and @external fields defined in the schema."
scalar _Any

"Scalar representing a set of fields."
scalar _FieldSet

"Used to indicate a combination of fields that can be used to uniquely identify and fetch an object or interface."
directive @key(fields: _FieldSet!) repeatable on OBJECT | INTERFACE
Loading
Loading