Mobile Locker JavaScript SDK
    Preparing search index...

    Variable searchConst

    search: { query(text: string, options?: SearchOptions): Promise<SearchResults> } = ...

    Type Declaration

    • query: function
      • Search across multiple entity types simultaneously.

        Returns results grouped by type. Use options.types to restrict the search to specific entities and options.limit to control result set size per type.

        Parameters

        • text: string

          The search string.

        • options: SearchOptions = {}

          Optional filter for entity types and result limit.

        Returns Promise<SearchResults>

        A SearchResults object with a result set for each entity type.

        MobileLockerError on network failure or server error.

        const results = await mobilelocker.search.query('Acme', { types: ['customers'], limit: 10 })
        results.customers.results.forEach(c => console.log(c.name))