Skip to main content

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​