• Give an unknown resourceIdFieldValue, expand the resource data.

    Parameters

    • resourceIdFieldValue: unknown

      value to expand

    • expander: undefined | Expander

      to use to expand

    Returns Promise<unknown | null | unknown[]>

    ExpanededResource | null | (ExpanededResource | null)[]

    Description

    1. If the resourceIdFieldValue is string, return the expanded resource or null (cannot expand)
    2. If the resourceIdFieldValue is string[], return the expanded resource array, ensure the order is the same as the input, and null for resources cannot expand
    3. If the resourceIdFieldValue is neither string nor string[], throw an error
    4. If the expander not specified, throw an error

Generated using TypeDoc