Class FieldLookupPolicy

java.lang.Object
org.springframework.data.mongodb.core.aggregation.FieldLookupPolicy

public abstract class FieldLookupPolicy extends Object
Lookup policy for aggregation fields. Allows strict lookups that fail if the field is absent or relaxed ones that pass-thru the requested field even if we have to assume that the field isn't present because of the limited scope of our input.
Since:
4.2.7
Author:
Mark Paluch
  • Method Details

    • relaxed

      public static FieldLookupPolicy relaxed()
      Returns:
      a relaxed lookup policy.
    • strict

      public static FieldLookupPolicy strict()
      Returns:
      a strict lookup policy.