toString
Returns a string that represents the current row.
Signature
The same on all adapters
toString(document?: IDocument<S>): string;
Example
enum EmployeeProps {
_id = '_id',
lastName = 'lastName',
firstName = 'firstName',
....
}
...
toString: (data: IDocument<EmployeeProps>) => {
return `${data.firstName} ${data.lastName}`;
},
Last updated