Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 457 Bytes

README.md

File metadata and controls

25 lines (17 loc) · 457 Bytes

Text search for typeorm

Requirements

Dependency version
node > 10
typeorm ^0.2.25

Installation:

npm i --save typeorm-text-search

Usage

import { textSearchByFields } from 'typeorm-text-search';

const queryBuilder = await connection.createQueryBuilder(User, "user");
textSearchByFields<User>(queryBuilder, 'SearchTerm', ['fields', 'to', 'search by']);

const users = queryBuilder.getMany();