mirror of
https://github.com/cerc-io/watcher-ts
synced 2025-01-10 13:28:06 +00:00
nikugogoi
f52467f724
* Add implementation for one to one relation * Implement one to many relation in gql queries * Make changes for gql relation queries in eden-watcher * Implement subgraph gql relation queries with joins
29 lines
471 B
GraphQL
29 lines
471 B
GraphQL
enum EnumType {
|
|
choice1
|
|
choice2
|
|
}
|
|
|
|
type RelatedEntity @entity {
|
|
id: ID!
|
|
paramBigInt: BigInt!
|
|
bigIntArray: [BigInt!]!
|
|
}
|
|
|
|
type ExampleEntity @entity {
|
|
id: ID!
|
|
count: BigInt!
|
|
paramString: String! # string
|
|
paramInt: Int! # uint8
|
|
paramBoolean: Boolean!
|
|
paramBytes: Bytes!
|
|
paramEnum: EnumType!
|
|
paramBigDecimal: BigDecimal!
|
|
related: RelatedEntity!
|
|
manyRelated: [ManyRelatedEntity!]!
|
|
}
|
|
|
|
type ManyRelatedEntity @entity {
|
|
id: ID!
|
|
count: BigInt!
|
|
}
|