mirror of
https://github.com/cerc-io/watcher-ts
synced 2024-11-20 12:56:20 +00:00
94e9182dd3
* Handle BigNumber event params in watchers * Customize decimal according to limits of IEEE-754 decimal128 * Add definition for custom scalar BigDecimal
31 lines
472 B
GraphQL
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!
|
|
}
|