Skip to content
GitHubXDiscordRSS

OrganizationRef

For ease of use we expose OrganizationRef to allow you to reference an organization by name.

An organization can be referenced by name or by ID, then passed to other planetscale resources.

import { OrganizationRef, Service, Database } from "alchemy/planetscale";
const organization = await OrganizationRef("Alchemy");
const database = await Database("my-db", {
organization,
name: "my-db",
clusterSize: "PS_10",
});