We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f931f91 commit ab75afaCopy full SHA for ab75afa
src/rules-engine/data-processors/dgraph-data-processor.ts
@@ -168,10 +168,22 @@ export default class DgraphDataProcessor implements DataProcessor {
168
key => this.typenameToFieldMap[key] === finding.typename
169
)
170
171
+ // Set required fields to allow resource insertion
172
+ const requiredFields = !isEmpty(this.extraFields)
173
+ ? this.extraFields.reduce(
174
+ (acc, current) => ({
175
+ ...acc,
176
+ [current]: finding[current],
177
+ }),
178
+ {}
179
+ )
180
+ : {}
181
+
182
return {
183
...finding,
184
[resourceType]: {
185
id: resource,
186
+ ...requiredFields,
187
},
188
}
189
})
0 commit comments