Skip to content

getBasesQueryConstructor

Unofficial

Get the BasesQuery constructor (the .base parser, exposing the static fromString).

BasesQuery has no public obsidian export and no leaf-free factory, so the class is harvested at runtime: a throwaway base is rendered off-screen (via getBasesControllerFromRender) and the constructor is read off the resulting query. The throwaway render is torn down before returning.

Import:

import { getBasesQueryConstructor } from '@obsidian-typings/obsidian-public-latest/implementations';

Signature:

function getBasesQueryConstructor(app: App): Promise<BasesQueryConstructor>

Parameters:

ParameterTypeDescription
appAppThe app instance.

Returns: Promise<BasesQueryConstructor> — The BasesQuery constructor.