9.0 GraphQL Changes¶
With VECTR 9.0 some breaking changes have been made to the GraphQL API. See the listing below.
Fields No Longer Supported¶
The fields in the list below are deprecated and no longer supported. They will be removed at some point in the future.
Deprecated Type Fields¶
Type | Field |
---|---|
DefensiveLayer | deprecated |
KillChain | tags |
Organization | tags |
Phase | tags |
Source |
|
Target |
|
TestCase |
|
RedTool |
|
Target |
|
Deprecated Input Fields¶
The CreateTestCaseDataInput fields in the list below will map to outcomePath using the best guess
- CreateTestCaseDataInput.outcome
- CreateTestCaseDataInput.alertSeverity
- CreateTestCaseDataInput.alertTriggered
- CreateTestCaseDataInput.activityLogged
- CreateTargetDataInput.phases
- CreateSourceDataInput.phases
Changes to Response Values¶
Affected Field | Previous Value | New Value |
---|---|---|
TimelineEvent.fieldName |
|
|
attackStart.TimelineEvent.fieldAction |
|
|
attackStop.TimelineEvent.fieldAction |
|
|
Content Library Queries¶
Since VECTR 9.0, the “GoldStandard” database reference has been deprecated, and will eventually get phased out. New queries have been added to specifically target Content Library data, formerly known as "GoldStandard". These queries are prefixed with “library” and omits the “db” parameter, but are otherwise equivalent as the non “library” query. If you are currently using a GraphQL query to pull data from “GoldStandard”, we recommend using the “library” equivalent as the usage of “GoldStandard” on a non “library” query will not be supported in a future VECTR version.
Here are a couple of example query definitions of a non “library” query and its equivalent “library” query:
Query | Library Query |
---|---|
testCase (db :String! id :String ): TestCase |
libraryTestCase (id :String ): TestCase |
testCases (db :String! filter : TestCaseFilter first :Int after :String orderBy :TestCaseSortOrder = {field: NAME, direction: ASC} ): TestCaseConnection |
libraryTestCases (filter : TestCaseFilter first :Int after :String orderBy :TestCaseSortOrder = {field: NAME, direction: ASC} ): TestCaseConnection |
testcasesByIds (db :String! id :[String]! ): TestCaseConnection |
libraryTestcasesByIds (id :[String]! ): TestCaseConnection |
New Types¶
- DefenseToolProduct
- AutomationArgument
- TagType
New Fields¶
Type/Enum | Field |
---|---|
Database | id |
DefensiveLayer | template |
BlueTool |
|
TagTypeEnum | DETECTION_RULE |
RedTool |
|
Tag |
|
New Inputs¶
Query | Input |
---|---|
bluetools | filter |
New Queries and Mutations¶
Name | Description |
---|---|
TestCaseMutation.updateTemplate |
Update for existing library testcases |
DefenseToolProduct.defenseToolProducts |
Query for all defense tool products |
TestCaseMutation.updateTemplate |
Query for defense tool products of the provided ids |
TagType.tagTypes |
Query for all tag types |