diff --git a/src/rules-engine/data-processors/dgraph-data-processor.ts b/src/rules-engine/data-processors/dgraph-data-processor.ts index 712c6bc..b21ba92 100644 --- a/src/rules-engine/data-processors/dgraph-data-processor.ts +++ b/src/rules-engine/data-processors/dgraph-data-processor.ts @@ -119,6 +119,7 @@ export default class DgraphDataProcessor implements DataProcessor { data: { id: `${this.providerName}-provider`, }, + rawData: {}, }, { name: `${this.providerName}Findings`, @@ -138,6 +139,7 @@ export default class DgraphDataProcessor implements DataProcessor { ), }, }, + rawData: {}, }, ] : [] @@ -235,6 +237,7 @@ addruleMetadata(input: $input, upsert: true) { severity, }) ), + rawData: {} }, ] } @@ -266,6 +269,7 @@ mutation($input: [Add${this.providerName}${this.entityName}FindingsInput!]!) { } `, data: entitiesData, + rawData: {} }, ...providerData, ] diff --git a/src/types/index.ts b/src/types/index.ts index 21cfda9..ec75aec 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -61,6 +61,7 @@ export interface Entity { name: string mutation: EntityMutations | string data: any[] | any + rawData: any[] | any; } export interface ProviderData {