OrganizationRef
For ease of use we expose OrganizationRef
to allow you to reference an organization by name.
Minimal Example
Section titled “Minimal Example”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",});