Forest Admin - API reference
    Preparing search index...
    interface DataSource<C extends Collection = Collection> {
        get collections(): C[];
        get nativeQueryConnections(): Record<string, unknown>;
        get schema(): DataSourceSchema;
        executeNativeQuery(
            connectionName: string,
            query: string,
            contextVariables: Record<string, unknown>,
        ): Promise<unknown>;
        getCollection(name: string): C;
        renderChart(caller: Caller, name: string): Promise<unknown>;
    }

    Type Parameters

    Implemented by

    Index

    Accessors

    Methods

    • Parameters

      • connectionName: string
      • query: string
      • contextVariables: Record<string, unknown>

      Returns Promise<unknown>