watcher-ts/packages/graph-node/test/subgraph/example1/schema.graphql

30 lines
439 B
GraphQL
Raw Normal View History

enum BlogKind {
short
long
}
type Blog @entity {
id: ID!
kind: BlogKind!
isActive: Boolean!
reviews: [BigInt!]!
author: Author!
categories: [Category!]!
}
type Author @entity {
id: ID!
blogCount: BigInt!
name: String! # string
rating: BigDecimal!
paramInt: Int! # uint8
paramBytes: Bytes!
blogs: [Blog!]! @derivedFrom(field: "author")
}
type Category @entity {
id: ID!
name: String!
count: BigInt!
}