-
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
d04fb9e
commit 0953e66
Showing
11 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
13 changes: 13 additions & 0 deletions
13
rfcs/test-cases/default-value-not-accessible/invalid/composite/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 @key(fields: "id") { | ||
id: ID | ||
friends(type: FriendType = FAMILY): [User!]! | ||
} | ||
|
||
enum FriendType { | ||
FAMILY @internal | ||
FRIEND | ||
} |
File renamed without changes.
File renamed without changes.
13 changes: 13 additions & 0 deletions
13
rfcs/test-cases/default-value-not-accessible/valid/composite/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 @key(fields: "id") { | ||
id: ID | ||
friends(type: FriendType = FAMILY @internal): [User!]! | ||
} | ||
|
||
enum FriendType { | ||
FAMILY @internal | ||
FRIEND | ||
} |
File renamed without changes.
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
rfcs/test-cases/external-requires-extension/composite/reviews.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,19 @@ | ||
type Query { | ||
reviews: [Review] | ||
} | ||
|
||
type Review @key(fields: "id") { | ||
id: ID! | ||
title: String! | ||
author: User! | ||
} | ||
|
||
extend type User @key(fields: "id") { | ||
id: ID! @external | ||
profile: Profile! @external | ||
reviews: [Review] @requires(fields: "profile { id __typename }") | ||
} | ||
|
||
extend type Profile { | ||
id: ID! @external | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
15 changes: 15 additions & 0 deletions
15
rfcs/test-cases/external-requires-extension/federation/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,15 @@ | ||
extend schema @link(url: "https://specs.apollo.dev/federation/v2.3", import: ["@key"]) | ||
|
||
type Query { | ||
users: [User] | ||
} | ||
|
||
type User @key(fields: "id") { | ||
id: ID! | ||
profile: Profile! | ||
} | ||
|
||
type Profile { | ||
id: ID! | ||
name: String! | ||
} |