Skip to content
Sheetwrite

@sheetwrite/queries

querySessionOffunction

Report a problem

On this page

The query session of grid. The queries add-on starts loading the engine when the grid is created, so this resolves once it is ready. Rejects with code optional-backend-unavailable when the add-on does not apply to the grid: it is not installed, the grid is destroyed, or no fetchSource was given.

Declaration

function querySessionOf(grid: Grid): Promise<QuerySession>

Parameters

grid: Gridrequired

A grid created after the add-on was installed.

Returns

Promise<QuerySession>

The grid's query session, once the query engine has loaded.