UNPKG

@webiny/api-headless-cms-ddb-es

Version:

DynamoDB and Elasticsearch storage operations plugin for Headless CMS API.

18 lines (17 loc) 747 B
import { ElasticsearchBoolQueryConfig } from "@webiny/api-elasticsearch/types"; import { CmsEntryListWhere, CmsModel } from "@webiny/api-headless-cms/types"; export declare const createBaseQuery: () => ElasticsearchBoolQueryConfig; interface Params { model: CmsModel; where: CmsEntryListWhere; } /** * Latest and published are specific in Elasticsearch to that extend that they are tagged in the __type property. * We allow either published or either latest. * Latest is used in the manage API and published in the read API. * * * We add the query.filter terms because we do not need scored search here and it is a bit faster. */ export declare const createInitialQuery: (params: Params) => ElasticsearchBoolQueryConfig; export {};