Files
test-repo/tests/graphql/interface/interface.graphql
T
fisker Cheung f8c5b1fd1d Categorize tests part 2 (#8248)
* Categorize tests (yaml, markdown)

* Categorize tests (handlebars)

* Categorize tests (graphql)

* Categorize tests (typescript)

* Categorize tests (json)

* Categorize tests (jsx)
2020-05-07 23:54:44 +08:00

44 lines
617 B
GraphQL

# https://github.com/graphql/graphql-spec/blob/master/spec/Section%203%20--%20Type%20System.md#interfaces
interface Actor {
id: ID
name: String
}
interface Resource implements Node
{
id: ID!
url: String
}
interface Resource implements
Node {
id: ID!
url: String
}
interface Image implements Resource
& Node {
id: ID!
url: String
thumbnail: String
}
interface Node implements Named &
Node {
id: ID!
name: String
}
interface Named implements
Node & Named {
id: ID!
name: String
}
# `InterfaceTypeExtension`
extend interface Bar implements
A, B & C {
two(argument: InputType!): Type
}