Skip to main content
A searchable contact directory demonstrating case-insensitive text search with contains, filtering an enum field with in, and indexing the field the list filters on.

Schema

Entity: Contacts — key: contacts

Key Patterns

Text Search with Debounce

Debouncing prevents a request on every keystroke. 300 ms is a good default.

Filter by Relationship

relationship is declared indexed: true, so this filter is served by an index rather than a scan of every contact. See Indexing fields.

Combined Search + Relationship Filter

Multiple filter conditions use AND logic — both must match.

Null-Safe HTML Escaping

Always guard escapeHtml against null/undefined values — optional fields may be absent on older records: