search

Core method to perform a search query.

import { search } from 'basehub/search'

Using React? Check out our React helpers right here.

Arguments

Key

Type

Description

_searchKey

string | null

The search key (comes from the GraphQL API).

query

string

The query (typically comes from user input).

options

SearchOptions

Stuff like queryBy, filterBy, and more.