FlattenArrays<T>: {
    [K in keyof T]: UnwrapArray<T[K]>
}

This mapped type gets called by DeepPickFromPath<FlatModel, Path> when user uses selection set on a query to a many-to-many relationship join table. It flattens the Arrays of Models referenced in the join table.

(e.g. { customer: { orders: Order[]} } => { customer: { orders: Order} })

Type Parameters

  • T