watcher-ts/packages/graph-node/test/subgraph/example1/schema.graphql
nikugogoi 47cef8d5d7 Add support for subgraph schema data types (#46)
* Fix packages build

* Add support for boolean type in subgraph schema

* Add BigDecimal fromString and toString implementation

* Add implementation for subgraph Bytes type

* Implement enum type for subgraph schema

* Add implementation for subgraph schema BigDecimal type

* JSON stringify and parse entity data for auto-diff
2021-12-28 16:08:05 +05:30

16 lines
254 B
GraphQL

enum EnumType {
choice1
choice2
}
type ExampleEntity @entity {
id: ID!
count: BigInt!
paramString: String! # string
paramInt: Int! # uint8
paramBoolean: Boolean!
paramBytes: Bytes!
paramEnum: EnumType!
paramBigDecimal: BigDecimal!
}