getSearch (table-filters/url.ts)

appwrite · apps/console/src/lib/table-filters/url.ts · typescript · BSD-3-Clause
search

* Table filters and search – URL helpers (see TABLE_FILTERS_AND_SEARCH.md). Search uses param `search`; filters use param `query` (JSON-encoded array of CompactFilterKey only; no tag). Query strings are rebuilt from keys on decode. /

// Source: https://github.com/appwrite/appwrite | License: BSD-3-Clause | Copyright 2019 Appwrite (https://appwrite.io) and individual contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * Table filters and search – URL helpers (see TABLE_FILTERS_AND_SEARCH.md).
 *
 * Search uses param `search`; filters use param `query` (JSON-encoded array of CompactFilterKey only; no tag).
 * Query strings are rebuilt from keys on decode.
 */

import { buildFilterQueryString } from './operators'
import type { CompactFilterKey, FilterMap } from './types'

const PARAM_SEARCH = 'search'
const PARAM_QUERY = 'query'
const PARAM_PAGE = 'page'
const PARAM_LIMIT = 'limit'
const PARAM_SORT = 'sort'

/** Read search from URL (query string). Returns undefined if missing or empty after

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key