Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelstaib committed Apr 4, 2024
1 parent bb3fe22 commit 57a8829
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
14 changes: 14 additions & 0 deletions rfcs/test-cases/more-advanced-interface-object/fusion/a.graphql
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
type Query {
hello: String
myInterfaceById(id: ID!): MyInterface
}

interface MyInterface {
id: ID!
field: String
}

type MyType implements MyInterface {
id: ID!
field: String
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
type Query {
someTypeById(id: ID!): SomeType
}

type SomeType @baseType(of: "MyInterface") {
id: ID!
newField: String
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
type MyInterface @baseType(of: "MyInterface") {
id: ID!
field(newField: String! @requires(field: "newField")): String
}

0 comments on commit 57a8829

Please sign in to comment.