GraphLookup constructor

GraphLookup({
  1. required String from,
  2. required String startWith,
  3. required String connectFromField,
  4. required String connectToField,
  5. required String as,
  6. int? maxDepth,
  7. String? depthField,
  8. dynamic restrictSearchWithMatch,
})

Implementation

GraphLookup(
    {required String from,
    required String startWith,
    required String connectFromField,
    required String connectToField,
    required String as,
    int? maxDepth,
    String? depthField,
    restrictSearchWithMatch})
    : super(
          'graphLookup',
          AEObject({
            'from': from,
            'startWith': '\$$startWith',
            'connectFromField': connectFromField,
            'connectToField': connectToField,
            'as': as,
            if (maxDepth != null) 'maxDepth': maxDepth,
            if (depthField != null) 'depthField': depthField,
            if (restrictSearchWithMatch != null)
              'restrictSearchWithMatch':
                  _getRestrictSearchWithMatch(restrictSearchWithMatch)
          }));