@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) • 503 B
TypeScript
import type { Core, Modules, UID } from "@strapi/strapi";
export type PopulateParams<TContentType extends UID.ContentType = UID.ContentType> = Modules.Documents.Params.Pick<TContentType, "locale:string" | "status"> & {
contentType: TContentType;
documentId: string;
omitEmpty?: boolean;
bustCache?: boolean;
localizations?: boolean;
};
declare const _default: ({ strapi }: {
strapi: Core.Strapi;
}) => {
get(params: PopulateParams): Promise<any>;
};
export default _default;