Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 782 Bytes

filter.md

File metadata and controls

31 lines (21 loc) · 782 Bytes

Filter

Filter conditions. Currently only supports filtering by object type (page or database).

This model accepts additional fields of type Object.

Structure

Filter

Fields

Name Type Tags Description
value Value Optional The type of object to filter by.
property Property Optional Must be "object".
additional_properties Hash[String, Object] Optional -

Example

filter = Filter.new(
  value: Value::PAGE,
  property: Property::OBJECT,
  additional_properties: {
    'exampleAdditionalProperty' => JSON.parse('{"key1":"val1","key2":"val2"}')
  }
)