@reality.eth/graph 0.4.83 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/VERSION_LABEL CHANGED
@@ -1 +1 @@
1
- 0.0.8
1
+ 0.0.9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reality.eth/graph",
3
- "version": "0.4.83",
3
+ "version": "0.5.0",
4
4
  "scripts": {
5
5
  "create-local": "graph create realityeth/realityeth --node http://127.0.0.1:8020",
6
6
  "remove-local": "graph remove realityeth/realityeth --node http://127.0.0.1:8020",
@@ -71,7 +71,7 @@
71
71
  "prettier-write": "prettier --write '**/*.ts'"
72
72
  },
73
73
  "dependencies": {
74
- "@reality.eth/contracts": "^3.0.80",
74
+ "@reality.eth/contracts": "^3.1.0",
75
75
  "babel-polyfill": "^6.26.0",
76
76
  "babel-register": "^6.26.0",
77
77
  "mustache": "^4.2.0",
@@ -81,5 +81,5 @@
81
81
  "@graphprotocol/graph-cli": "^0.54.0",
82
82
  "@graphprotocol/graph-ts": "^0.27.0"
83
83
  },
84
- "gitHead": "4a690cfacbd1d55ccda7f5c26686853cc5c8cb0f"
84
+ "gitHead": "a2085e2003e071267ec59b80da9bc7e52356b5f4"
85
85
  }
package/schema.graphql CHANGED
@@ -16,6 +16,7 @@ type Question @entity {
16
16
  qJsonStr: String
17
17
  qTitle: String
18
18
  qCategory: String
19
+ qDescription: String
19
20
  qLang: String
20
21
  qType: String
21
22
 
package/src/mapping.ts CHANGED
@@ -87,6 +87,11 @@ export function handleNewQuestion(event: LogNewQuestion): void {
87
87
  question.qCategory = qCategory.toString();
88
88
  }
89
89
 
90
+ let qDescription = json_dict.get('description')
91
+ if (qDescription != null && qDescription.kind == JSONValueKind.STRING) {
92
+ question.qDescription = qDescription.toString();
93
+ }
94
+
90
95
  let qLang = json_dict.get('lang')
91
96
  if (qLang != null && qLang.kind == JSONValueKind.STRING) {
92
97
  question.qLang = qLang.toString();