Page Contents

Home > @loopback/filter > Fields

Fields type

Selection of fields

Example: {afieldname: true}

Signature:

export type Fields<MT = AnyObject> = {
    [P in keyof MT]?: boolean;
} | Extract<keyof MT, string>[];