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
This commit is contained in:
nikugogoi
2021-12-28 16:08:05 +05:30
committed by nabarun
parent 73dcb882a6
commit 47cef8d5d7
13 changed files with 346 additions and 162 deletions
@@ -1,6 +1,15 @@
enum EnumType {
choice1
choice2
}
type ExampleEntity @entity {
id: ID!
count: BigInt!
param1: String! # string
param2: Int! # uint8
paramString: String! # string
paramInt: Int! # uint8
paramBoolean: Boolean!
paramBytes: Bytes!
paramEnum: EnumType!
paramBigDecimal: BigDecimal!
}