mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-08 16:54:08 +00:00
Implement gql queries for relation entities similar to subgraph (#53)
* 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
This commit is contained in:
@@ -6,7 +6,6 @@ enum EnumType {
|
||||
type RelatedEntity @entity {
|
||||
id: ID!
|
||||
paramBigInt: BigInt!
|
||||
examples: [ExampleEntity!]!
|
||||
bigIntArray: [BigInt!]!
|
||||
}
|
||||
|
||||
@@ -20,4 +19,10 @@ type ExampleEntity @entity {
|
||||
paramEnum: EnumType!
|
||||
paramBigDecimal: BigDecimal!
|
||||
related: RelatedEntity!
|
||||
manyRelated: [ManyRelatedEntity!]!
|
||||
}
|
||||
|
||||
type ManyRelatedEntity @entity {
|
||||
id: ID!
|
||||
count: BigInt!
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user