Files
test-repo/tests/format/graphql/interface/interface.graphql
T
051fdd32f3 Update dependency graphql to v16 (#12835)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-05-08 20:20:34 +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
}