1.0 beta with relations in Drizzle Kit ?

With 1.0 beta it seems like drizzle now needs relations instead of schema: const db = drizzle(url, { relations }), which is kinda confusing imo, BUT what about drizzle kit?

It does not accept relations, it only accepts schema that does not contain relations anymore?

import { defineConfig } from 'drizzle-kit';

export default defineConfig({
  schema: './schema/index.ts', // <-- No relations
  dialect: 'postgresql',
  dbCredentials: {
    url: process.env.DATABASE_URL || '',
  },
});
Was this page helpful?