watcher-ts/packages/codegen/src/data/entities/Contract.yaml
prathamesh0 06ba24e38f Generate GQL API for subgraph entities and auto-diff based on store set (#38)
* Add subgraph schema types to the generated schema

* Add queries for subgraph entities

* Add entity generation for subgraph entities

* Call subgraph event handler in indexer

* Refactor subgraph schema and entity generation

* Add resolvers generation for subgraph entities

* Get event signature in the event

* Add NonNullType check for field type in entity generation

* Auto-diff based on store set

* Use contract address from data source in loader

* Change subgraph-schema arg to subgraph-path arg
2021-12-28 16:08:05 +05:30

36 lines
658 B
YAML

className: Contract
indexOn:
- columns:
- address
unique: true
columns:
- name: id
tsType: number
columnType: PrimaryGeneratedColumn
- name: address
pgType: varchar
tsType: string
columnType: Column
columnOptions:
- option: length
value: 42
- name: kind
pgType: varchar
tsType: string
columnType: Column
- name: checkpoint
pgType: boolean
tsType: boolean
columnType: Column
- name: startingBlock
pgType: integer
tsType: number
columnType: Column
imports:
- toImport:
- Entity
- PrimaryGeneratedColumn
- Column
- Index
from: typeorm