getCustomersBaseQuery
Get a base SELECT query for the customers table.
Import
import { getCustomersBaseQuery } from "@evershop/evershop/customer/services";
Syntax
getCustomersBaseQuery(): SelectQuery
Return Value
Returns SelectQuery object for customer table.
Examples
Basic Query
import { getCustomersBaseQuery } from "@evershop/evershop/customer/services";
const query = getCustomersBaseQuery();
const customers = await query.execute(pool);
See Also
- select - Query builder
- createCustomer - Create customer
- updateCustomer - Update customer