-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5b04deb
commit eec186e
Showing
11 changed files
with
110 additions
and
1 deletion.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
rfcs/test-cases/basic-example-with-requires/composite/a.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
type User @extends @key(fields: "id") { | ||
type User @key(fields: "id") { | ||
a: String | ||
id: ID! @external | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type User { | ||
a: String | ||
id: ID! @external | ||
} | ||
|
||
type Query { | ||
a: String | ||
userById(id: ID!): User | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
type User { | ||
b(uuid: String! @requires(fields: "uuid")): String | ||
id: ID! @external | ||
} | ||
|
||
type Query { | ||
b: String | ||
userById(id: ID!): User | ||
} |
10 changes: 10 additions & 0 deletions
10
rfcs/test-cases/basic-example-with-requires/fusion/c.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
type User { | ||
c: String | ||
id: ID! | ||
uuid: ID! | ||
} | ||
|
||
type Query { | ||
c: User | ||
userById(id: ID!): User | ||
} |
3 changes: 3 additions & 0 deletions
3
rfcs/test-cases/basic-example-with-requires/fusion/extra.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
type Query { | ||
extra: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
type Query { | ||
a: String | ||
} | ||
|
||
interface Node { | ||
id: ID! | ||
name: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
type Query { | ||
b: String | ||
node(id: ID!): Node | ||
} | ||
|
||
interface Node { | ||
id: ID! | ||
} | ||
|
||
type User implements Node { | ||
id: ID! | ||
name: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
extend schema @exports(directives: ["@lowercase"]) | ||
|
||
directive @lowercase on FIELD_DEFINITION | ||
|
||
type User { | ||
id: ID! @lowercase | ||
age: Int! | ||
} | ||
|
||
type Query { | ||
a: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
extend schema | ||
@link( | ||
url: "https://specs.apollo.dev/federation/v2.3" | ||
import: ["@key", "@external", "@requires", "@composeDirective"] | ||
) | ||
@link(url: "https://myspecs.dev/lowercase/v1.0", import: ["@lowercase"]) | ||
@composeDirective(name: "@lowercase") | ||
|
||
directive @lowercase on FIELD_DEFINITION | ||
|
||
type User @key(fields: "id") { | ||
id: ID! @lowercase | ||
age: Int! @external | ||
birthday: String @requires(fields: "age") | ||
} | ||
|
||
type Query { | ||
b: String | ||
} |
13 changes: 13 additions & 0 deletions
13
rfcs/test-cases/default-value-not-accessible/invalid/fusion/users.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
type Query { | ||
users: [User!]! | ||
} | ||
|
||
type User { | ||
id: ID | ||
friends(type: FriendType = FAMILY): [User!]! | ||
} | ||
|
||
enum FriendType { | ||
FAMILY @internal | ||
FRIEND | ||
} |
13 changes: 13 additions & 0 deletions
13
rfcs/test-cases/default-value-not-accessible/valid/fusion/users.graphql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
type Query { | ||
users: [User!]! | ||
} | ||
|
||
type User { | ||
id: ID | ||
friends(type: FriendType = FAMILY @internal): [User!]! | ||
} | ||
|
||
enum FriendType { | ||
FAMILY @internal | ||
FRIEND | ||
} |