Skip to main content
Version: 8.1

maxKey

This function is used by Ignition's Expression language.

Description

Returns org.bson.types.MaxKey, which is used in filters for the MongoDB Perspective binding expression.

Syntax

maxKey()

  • Parameters

    • None
  • Results

    • MaxKey - A special data type that will match with document fields of the same MaxKey type.

Example

Code Snippet
// In this example, we are querying for weather data documents using the field “elevation”
// In a Perspective MongoDB Binding, the expression below is applied to “value” of
// filter { elevation: “value” }

maxKey() // binding will return entire document(s) where maxKey is found