Skip to content

Commit 995f9e4

Browse files
committed
schema: Add type suggestions for NEAR
1 parent 71d9a97 commit 995f9e4

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

src/validation/schema.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ const BUILTIN_SCALAR_TYPES = [
2020
const TYPE_SUGGESTIONS = [
2121
['Address', 'Bytes'],
2222
['address', 'Bytes'],
23+
['Account', 'String'],
24+
['account', 'String'],
25+
['AccountId', 'String'],
26+
['AccountID', 'String'],
27+
['accountId', 'String'],
28+
['accountid', 'String'],
2329
['bytes', 'Bytes'],
2430
['string', 'String'],
2531
['bool', 'Boolean'],
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
type MyEntity @entity {
22
id: ID!
3-
x: BigDecimal!
3+
x: Account!
4+
}
5+
6+
type Account @entity {
7+
id: ID!
48
}

0 commit comments

Comments
 (0)