MCPcopy Create free account
hub / github.com/lightdash/lightdash / create

Method create

packages/backend/src/models/SavedChartModel.ts:709–725  ·  view source on GitHub ↗
(
        projectUuid: string,
        userUuid: string,
        data: CreateSavedChart & {
            updatedByUser: UpdatedByUser;
            slug: string;
            forceSlug?: boolean;
        },
    )

Source from the content-addressed store, hash-verified

707 }
708
709 async create(
710 projectUuid: string,
711 userUuid: string,
712 data: CreateSavedChart & {
713 updatedByUser: UpdatedByUser;
714 slug: string;
715 forceSlug?: boolean;
716 },
717 ): Promise<SavedChartDAO> {
718 const newSavedChartUuid = await createSavedChart(
719 this.database,
720 projectUuid,
721 userUuid,
722 data,
723 );
724 return this.get(newSavedChartUuid);
725 }
726
727 async createVersion(
728 savedChartUuid: string,

Callers 5

createChartsFunction · 0.95
createPivotTableChartsFunction · 0.95
seedFunction · 0.95
createChartsFunction · 0.95

Calls 2

getMethod · 0.95
createSavedChartFunction · 0.70

Tested by

no test coverage detected