@fourlights/strapi-plugin-deep-populate
Version:
This plugin provides a simple way of retrieving all nested objects in a single request.
15 lines (14 loc) • 614 B
TypeScript
import type { Core, Modules } from "@strapi/strapi";
import type { PopulateParams } from "./populate";
type SetPopulateParams = PopulateParams & Modules.Documents.Params.Pick<PopulateParams["contentType"], "populate"> & {
dependencies: string[];
};
declare const _default: ({ strapi }: {
strapi: Core.Strapi;
}) => {
get(params: PopulateParams): Promise<any>;
set({ populate, dependencies, ...params }: SetPopulateParams): Promise<Modules.Documents.AnyDocument>;
clear(params: PopulateParams): Promise<any>;
refreshDependents(documentId: string): Promise<void>;
};
export default _default;