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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@tag", "@key", "@provides", "@external", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@tag", "@key", "@provides", "@external", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@tag", "@key", "@provides", "@external", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@tag", "@key", "@provides", "@external", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@provides", "@external", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@provides", "@external", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@provides", "@external", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@provides", "@external", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @composeDirective(name: "@custom") @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet", "@composeDirective" ]) @link(url: "https://specs.custom.dev/custom/v1.0", import: [ "@custom" ]) {
schema @composeDirective(name: "@custom") @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@composeDirective"]) @link(url: "https://specs.custom.dev/custom/v1.0", import: ["@custom"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @composeDirective(name: "@custom") @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet", "@composeDirective" ]) @link(url: "https://specs.custom.dev/custom/v1.0", import: [ "@custom" ]) {
schema @composeDirective(name: "@custom") @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@composeDirective"]) @link(url: "https://specs.custom.dev/custom/v1.0", import: ["@custom"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@external", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@external", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@external", "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@external", "@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypePropertyDirective
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypePropertyDirectives
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypeClassDirective
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypeClassDirective
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypePropertyDirective
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypePropertyDirectives
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypeClassDirective
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: QueryOfTestTypeClassDirective
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.0", import: [ "@key", "@override", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.0", import: ["@key", "@override", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.7", import: [ "@key", "@override", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.7", import: ["@key", "@override", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet", "@policy" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@policy"]) {
query: Query
}

type Query {
someField(id: Int!): Review! @policy(policies: [ [ "p1, p1_1", "p2" ] ])
someField(id: Int!): Review! @policy(policies: [["p1, p1_1", "p2"]])
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type Review @key(fields: "id") @policy(policies: [ [ "p3" ] ]) {
type Review @key(fields: "id") @policy(policies: [["p3"]]) {
id: Int!
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet", "@policy" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@policy"]) {
query: Query
}

type Query {
someField(id: Int!): Review! @policy(policies: [ [ "p1, p1_1", "p2" ] ])
someField(id: Int!): Review! @policy(policies: [["p1, p1_1", "p2"]])
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type Review @key(fields: "id") @policy(policies: [ [ "p3" ] ]) {
type Review @key(fields: "id") @policy(policies: [["p3"]]) {
id: Int!
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@policy", "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@policy", "@key", "@tag", "FieldSet"]) {
query: Query
}

type Query {
someField: Review! @policy(policies: [ [ "p1,p1_1", "p2" ] ])
someField: Review! @policy(policies: [["p1,p1_1", "p2"]])
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type Review @key(fields: "id") @key(fields: "id") @policy(policies: [ [ "p3" ] ]) {
type Review @key(fields: "id") @key(fields: "id") @policy(policies: [["p3"]]) {
id: Int!
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@provides", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@provides", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@provides", "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@provides", "@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@requires", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@requires", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@requires", "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@requires", "@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet", "@requiresScopes" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@requiresScopes"]) {
query: Query
}

type Query {
someField(id: Int!): Review! @requiresScopes(scopes: [ [ "s1, s1_1", "s2" ] ])
someField(id: Int!): Review! @requiresScopes(scopes: [["s1, s1_1", "s2"]])
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type Review @key(fields: "id") @requiresScopes(scopes: [ [ "s3" ] ]) {
type Review @key(fields: "id") @requiresScopes(scopes: [["s3"]]) {
id: Int!
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet", "@requiresScopes" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet", "@requiresScopes"]) {
query: Query
}

type Query {
someField(id: Int!): Review! @requiresScopes(scopes: [ [ "s1, s1_1", "s2" ] ])
someField(id: Int!): Review! @requiresScopes(scopes: [["s1, s1_1", "s2"]])
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type Review @key(fields: "id") @requiresScopes(scopes: [ [ "s3" ] ]) {
type Review @key(fields: "id") @requiresScopes(scopes: [["s3"]]) {
id: Int!
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@requiresScopes", "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@requiresScopes", "@key", "@tag", "FieldSet"]) {
query: Query
}

type Query {
someField: Review! @requiresScopes(scopes: [ [ "s1,s1_1", "s2" ] ])
someField: Review! @requiresScopes(scopes: [["s1,s1_1", "s2"]])
_service: _Service!
_entities(representations: [_Any!]!): [_Entity]!
}

type Review @key(fields: "id") @key(fields: "id") @requiresScopes(scopes: [ [ "s3" ] ]) {
type Review @key(fields: "id") @key(fields: "id") @requiresScopes(scopes: [["s3"]]) {
id: Int!
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public async Task TestServiceTypeEmptyQueryTypePureCodeFirst()
.Parse((string)value!)
.MatchInlineSnapshot(
"""
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down Expand Up @@ -88,7 +88,7 @@ public async Task TestServiceTypeTypePureCodeFirst()
.Parse((string)value!)
.MatchInlineSnapshot(
"""
schema @link(url: "https://specs.apollo.dev/federation/v2.2", import: [ "@key", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.2", import: ["@key", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@shareable", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@shareable", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: [ "@shareable", "@tag", "FieldSet" ]) {
schema @link(url: "https://specs.apollo.dev/federation/v2.6", import: ["@shareable", "@tag", "FieldSet"]) {
query: Query
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ schema {
}

type Query {
foo: String @authorize(roles: [ "MyRole" ])
foo: String @authorize(roles: ["MyRole"])
}

"Defines when a policy shall be executed."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ schema {
query: Query
}

type Query @authorize(roles: [ "MyRole" ]) {
type Query @authorize(roles: ["MyRole"]) {
foo: String
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Droid implements Character {
id: ID!
name: String!
appearsIn: [Episode]
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: [ "first", "last" ], slicingArgumentDefaultValue: 10, sizedFields: [ "edges", "nodes" ], requireOneSlicingArgument: false) @cost(weight: "10")
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: ["first", "last"], slicingArgumentDefaultValue: 10, sizedFields: ["edges", "nodes"], requireOneSlicingArgument: false) @cost(weight: "10")
height(unit: Unit): Float
primaryFunction: String
traits: Any
Expand Down Expand Up @@ -45,7 +45,7 @@ type Human implements Character {
id: ID!
name: String!
appearsIn: [Episode]
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: [ "first", "last" ], slicingArgumentDefaultValue: 10, sizedFields: [ "edges", "nodes" ], requireOneSlicingArgument: false) @cost(weight: "10")
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: ["first", "last"], slicingArgumentDefaultValue: 10, sizedFields: ["edges", "nodes"], requireOneSlicingArgument: false) @cost(weight: "10")
otherHuman: Human
height(unit: Unit): Float
homePlanet: String
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type Droid implements Character {
id: ID!
name: String!
appearsIn: [Episode]
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: [ "first", "last" ], slicingArgumentDefaultValue: 10, sizedFields: [ "edges", "nodes" ], requireOneSlicingArgument: false) @cost(weight: "10")
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: ["first", "last"], slicingArgumentDefaultValue: 10, sizedFields: ["edges", "nodes"], requireOneSlicingArgument: false) @cost(weight: "10")
height(unit: Unit): Float
primaryFunction: String
traits: Any
Expand Down Expand Up @@ -45,7 +45,7 @@ type Human implements Character {
id: ID!
name: String!
appearsIn: [Episode]
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: [ "first", "last" ], slicingArgumentDefaultValue: 10, sizedFields: [ "edges", "nodes" ], requireOneSlicingArgument: false) @cost(weight: "10")
friends("Returns the first _n_ elements from the list." first: Int "Returns the elements in the list that come after the specified cursor." after: String "Returns the last _n_ elements from the list." last: Int "Returns the elements in the list that come before the specified cursor." before: String): FriendsConnection @listSize(assumedSize: 50, slicingArguments: ["first", "last"], slicingArgumentDefaultValue: 10, sizedFields: ["edges", "nodes"], requireOneSlicingArgument: false) @cost(weight: "10")
otherHuman: Human
height(unit: Unit): Float
homePlanet: String
Expand Down
Loading
Loading