-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 3 additions & 14 deletions
17
packages/indexer-common/src/schema/indexer-management/resolvers/BigInt.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
import { GraphQLScalarType } from 'graphql' | ||
export const BigInt = new GraphQLScalarType({ | ||
name: 'BigInt', | ||
description: 'BigInt description', | ||
serialize: (value) => { | ||
/* Implement logic to turn the returned value from resolvers to a value that can be sent to clients */ | ||
}, | ||
parseValue: (value) => { | ||
/* Implement logic to parse input that was sent to the server as variables */ | ||
}, | ||
parseLiteral: (ast) => { | ||
/* Implement logic to parse input that was sent to the server as literal values (string, number, or boolean) */ | ||
}, | ||
}) | ||
import { BigIntResolver } from 'graphql-scalars' | ||
|
||
export const BigInt = BigIntResolver |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8112,6 +8112,13 @@ graphql-request@^6.0.0: | |
"@graphql-typed-document-node/core" "^3.2.0" | ||
cross-fetch "^3.1.5" | ||
|
||
graphql-scalars@^1.22.5: | ||
version "1.22.5" | ||
resolved "https://registry.yarnpkg.com/graphql-scalars/-/graphql-scalars-1.22.5.tgz#f7aceacf0efd2f38d53635c69895e3c67c04bd37" | ||
integrity sha512-Mw7uaqRscjdaXmxlHbt3sYGLU8o1hfFvTvN2VRrYEJyEPy6zGIbaFyJ4PPyt9H6GRHp01MQwS6HqXroRYHyGOg== | ||
dependencies: | ||
tslib "^2.5.0" | ||
|
||
[email protected], graphql-tag@^2.11.0, graphql-tag@^2.12.3: | ||
version "2.12.6" | ||
resolved "https://registry.npmjs.org/graphql-tag/-/graphql-tag-2.12.6.tgz" | ||
|