mirror of
https://github.com/cerc-io/watcher-ts
synced 2026-09-09 17:24:07 +00:00
Prioritize block hash over number in singular time travel queries (#462)
* Keep return value for singular subgraph entity queries nullable * Prioritize block hash over number in time travel queries * Throw error when block with given hash doesn't exist in db
This commit is contained in:
@@ -193,7 +193,7 @@ export class Schema {
|
||||
const queryObject: { [key: string]: any; } = {};
|
||||
queryObject[queryName] = {
|
||||
// Get type composer object for return type from the schema composer.
|
||||
type: this._composer.getAnyTC(subgraphType).NonNull,
|
||||
type: this._composer.getAnyTC(subgraphType),
|
||||
args: {
|
||||
id: 'ID!',
|
||||
block: BlockHeight
|
||||
|
||||
Reference in New Issue
Block a user