Skip to main content

Configure search

To enable search functionality for a resource based on specific fields, use the searchable decorator on the properties you want to make searchable. You can mark multiple fields within a single resource as searchable:

class Student {
@searchable()
name: string;
}

When the name field is marked as searchable, users will be able to find a student by typing their name into the search bar at the top-left corner of the page.