Interfaces
Extract interfaces and query multiple types in a single query
interface Profile @entity {
about: String!
}
type Member implements Profile @entity {
about: String!
handle: String!
}
type Account implements Profile @entity {
about: String!
accountId: Bytes
}query {
profiles(limit: 5, offset: 5, orderBy: about_ASC, where: { about_eq: "joystreamer" }) {
about
__typename
... on Member {
handle
}
... on Account {
accountId
}
}
}Last updated