Function isRefTypeArray

  • Check if the array is fully of type "refType" Only returns "true" if all members in the array are of type "refType"

    Type Parameters

    Parameters

    • docs: mongoose.Types.Array<Ref<T, S>>

      The Ref with uncretain type

    • refType: AllowedRefTypes

      The Expected Reference Type (this is required because this type is only known at compile time, not at runtime)

    Returns docs is mongoose.Types.Array<NonNullable<S>>

  • Check if the array is fully of type "refType" Only returns "true" if all members in the array are of type "refType"

    Type Parameters

    Parameters

    • docs: Ref<T, S>[]

      The Ref with uncretain type

    • refType: AllowedRefTypes

      The Expected Reference Type (this is required because this type is only known at compile time, not at runtime)

    Returns docs is NonNullable<S>[]

Generated using TypeDoc