diff --git a/node/src/remote/index.ts b/node/src/remote/index.ts index a7fc46f8..f2cd35ea 100644 --- a/node/src/remote/index.ts +++ b/node/src/remote/index.ts @@ -57,8 +57,8 @@ export class RemoteConnection implements Connection { return 'db://' + this._client.uri } - async tableNames (): Promise { - const response = await this._client.get('/v1/table/') + async tableNames (pageToken: string = '', limit: number = 10): Promise { + const response = await this._client.get('/v1/table/', { limit, page_token: pageToken }) return response.data.tables }