watcher-ts/packages/graph-node/test/subgraph/example1/schema.graphql
prathamesh0 94e9182dd3 Handle BigNumber event params and customize Decimal (#63)
* Handle BigNumber event params in watchers

* Customize decimal according to limits of IEEE-754 decimal128

* Add definition for custom scalar BigDecimal
2021-12-28 16:08:05 +05:30

31 lines
472 B
GraphQL

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
paramBigInt: BigInt! # uint256
paramBytes: Bytes!
blogs: [Blog!]! @derivedFrom(field: "author")
}
type Category @entity {
id: ID!
name: String!
count: BigInt!
}