Skip to content

Commit

Permalink
Added more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Mar 28, 2024
1 parent b47872f commit 0ebb2f8
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 93 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type User @extends @key(fields: "id") {
a: String
id: ID! @external
}

type Query {
a: String
userById(id: ID!): User @lookup
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
type User @key(fields: "id") {
b(uuid: String! @requires(fields: "uuid")): String
id: ID! @external
}

type Query {
b: String
userById(id: ID!): User @lookup
}
10 changes: 10 additions & 0 deletions rfcs/test-cases/basic-example-with-requires/composite/c.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
type User @key(fields: "id") {
c: String
id: ID!
uuid: ID!
}

type Query {
c: User
userById(id: ID!): User @lookup
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
type Query {
extra: String
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
type User @extends @key(fields: "id") {
a: String
id: ID! @external
uuid: ID! @external
}

type Query {
Expand Down
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") {
b: String @requires(fields: "uuid")
id: ID! @external
uuid: ID! @external
Expand Down

0 comments on commit 0ebb2f8

Please sign in to comment.