File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -209,12 +209,14 @@ export default class RulesProvider implements Engine {
209
209
MISSING
210
210
SKIPPED
211
211
}
212
+
212
213
type ${ this . providerName } Findings @key(fields: "id") {
213
214
id: String! @id
214
215
${ this . entityName } Findings: [${ this . providerName } ${
215
216
this . entityName
216
217
} Findings]
217
218
}
219
+
218
220
type ruleMetadata @key(fields: "id") {
219
221
id: String! @id @search(by: [hash, regexp])
220
222
severity: String! @search(by: [hash, regexp])
@@ -224,13 +226,16 @@ export default class RulesProvider implements Engine {
224
226
rationale: String @search(by: [hash, regexp])
225
227
remediation: String @search(by: [hash, regexp])
226
228
references: [String] @search(by: [hash, regexp])
229
+ findings: [baseFinding] @hasInverse(field: rule)
227
230
}
231
+
228
232
interface baseFinding {
229
233
id: String! @id
230
234
resourceId: String @search(by: [hash, regexp])
231
- rule: ruleMetadata
235
+ rule: [ ruleMetadata] @hasInverse(field: findings)
232
236
result: FindingsResult @search
233
237
}
238
+
234
239
type ${ this . providerName } ${
235
240
this . entityName
236
241
} Findings implements baseFinding @key(fields: "id") {
You can’t perform that action at this time.
0 commit comments