documents | Document List Set of documents to be grouped based on the specified criteria. |
groupCriteria | Document List The criteria on which the input documents are to be grouped. Valid values for the groupCriteria parameter are: key. Key in the pipeline. The value for key can be a path expression. For example, "Family/Chidren[0]/BirthDate" retrieves the birthday of the first child from the input Family document list. compareStringsAs. Optional. Valid values for compareStringsAs are string, numeric, and datetime. The default value is string. pattern. Optional. pattern will be considered only if the compareStringsAs parameter is of type datetime. For information about using patterns, see
Time Zones. Note: If key is not found in all the input documents, the documents that do not match the groupCriteria are grouped together as a single group. |
documentGroups | Document List List of documents where each element represents a set of documents grouped based on the criteria specified. |
key | compareStringsAs | pattern |
name | string | |
age | numeric | |
birthdate | datetime | yyyy-MM-dd |