From fa3e9e5e1a475d59ef84f4c41e797035b61d3dd5 Mon Sep 17 00:00:00 2001 From: Ashish Pandey Date: Wed, 8 May 2024 14:13:58 +0530 Subject: [PATCH] Fix incorrectly documented QueryResponse type in typescript.mdx As per the index.d.ts file and in general how query responses are shaped the `QueryResponse` type is correctly typed as: ``` export type QueryResponse> = { data: EntityItem[]; cursor: string | null; }; ``` though in the docs reference it was typed as: ``` export type QueryResponse> = { data: EntityItem; cursor: string | null; }; ``` this kinda confused me and hence this docs correction. --- www/src/pages/en/reference/typescript.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/src/pages/en/reference/typescript.mdx b/www/src/pages/en/reference/typescript.mdx index a803df0c..31dee8f2 100644 --- a/www/src/pages/en/reference/typescript.mdx +++ b/www/src/pages/en/reference/typescript.mdx @@ -51,7 +51,7 @@ The `QueryResponse` type is the same type returned by an ElectroDB Query. ```typescript export type QueryResponse> = { - data: EntityItem; + data: EntityItem[]; cursor: string | null; }; ```