watcher-ts/packages/graph-node/test/subgraph/example1/schema.graphql
nikugogoi f52467f724 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
2021-12-28 16:08:05 +05:30

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!
}