MCPcopy
hub / github.com/remix-run/remix / where

Method where

packages/data-table/src/lib/query.ts:335–348  ·  view source on GitHub ↗
(
    this: Query<source, columnTypes, row, loaded, QueryAllPhase<phase>>,
    input: WhereInput<QueryColumns<columnTypes>>,
  )

Source from the content-addressed store, hash-verified

333 }
334
335 where(
336 this: Query<source, columnTypes, row, loaded, QueryAllPhase<phase>>,
337 input: WhereInput<QueryColumns<columnTypes>>,
338 ): Query<source, columnTypes, row, loaded, QueryAllPhase<phase>> {
339 let predicate = normalizeWhereInput(input)
340 let normalizedPredicate = normalizePredicateValues(
341 predicate,
342 createPredicateColumnResolver([this.#table, ...this.#state.joins.map((join) => join.table)]),
343 )
344
345 return this.#clone({
346 where: [...this.#state.where, normalizedPredicate],
347 })
348 }
349
350 having(
351 this: Query<source, columnTypes, row, loaded, QueryAllPhase<phase>>,

Callers 15

adapter.test.tsFile · 0.80
database.test.tsFile · 0.80
findOneMethod · 0.80
findManyMethod · 0.80
countMethod · 0.80
updateMethod · 0.80
updateManyMethod · 0.80
deleteMethod · 0.80
deleteManyMethod · 0.80

Calls 5

#cloneMethod · 0.95
normalizeWhereInputFunction · 0.90
normalizePredicateValuesFunction · 0.85
mapMethod · 0.80

Tested by

no test coverage detected