OBJECT

AssetGroupFilter

An asset group filter. Limitations:

  • Only specific fields and operators are supported.
  • For non-logical operators, 'field' and 'values' must be set.
  • For logical operators (And/Or), 'expressions' must be set.
  • Nested expressions are allowed, but depth is limited.
  • Special patterns are enforced for risk and criticality:
    • Risk and criticality filters must use an 'And' operator with 1-2 risk expressions and exactly 1 criticality expression (NotEqual NoneCriticality).
  • Array-field 'Or' patterns are only allowed if both expressions use the same array field, with one 'Contains' (empty string) and one 'Equal' (empty array).

link GraphQL Schema definition

  • type AssetGroupFilter {
  • # Operators other than [And/Or] must have this field selection
  • field: AssetField
  • op: ExprOp!
  • # List of values, Must be applied when using operators other than [And/Or]
  • values: JSON
  • # List of expressions, Must be applied when using [And/Or] operators
  • #
  • # Arguments
  • # after: Returns the items in the list that come after the
  • # specified cursor.
  • # first: Returns the first n items from the list.
  • # before: Returns the items in the list that come before the
  • # specified cursor.
  • # last: Returns the last n items from the list.
  • expressions(after: String, first: Int, before: String, last: Int): AssetGroupFilterConnection!
  • }