Skip to content

Commit 22fc464

Browse files
authored
fix: add string array to populate types
2 parents 9ac67c7 + 3101e37 commit 22fc464

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/types/content-api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ export interface BaseQueryParams {
6767
*
6868
* Can be:
6969
* - a `string` to specify relation paths as `populate=name`
70+
* - an `array` of strings to specify multiple relation paths
7071
* - an `object` to enable deeper population configurations
7172
*/
72-
populate?: string | Record<string, unknown>;
73+
populate?: string | string[] | Record<string, unknown>;
7374

7475
/**
7576
* Specifies the fields of documents to include in the response.

0 commit comments

Comments
 (0)