This is a filter that lets you remove attributes and columns from a result set.

ParameterTypeRequiredDefault ValueDescription
fields[a]array of stringsrequired   The names of the fields to discard.

[a] The parameter name fields can be omitted.

Hide omitted argument names for this function

Show omitted argument names for this function

drop() Examples

Click + next to an example below to get the full details.

Calculate a Percentage of Successful Status Codes Over Time

Count Events per Repository

Count of the events received by repository

Remove Attributes, Columns/Fields From Result Set - Example 1

Drop a single field from a result set using the drop() function

Remove Attributes, Columns/Fields From Result Set - Example 2

Drop two fields from a result set using the drop() function