DT
Drizzle Teamkinsyu
There's not enough information to infer relation
I am trying to use drizzle studio but I'm running into the following issue,
There is not enough information to infer relation "__public__.collectionsTable.tokens"
.
Here's a simplified version of the schema.
In short, each collection can have multiple tokens, but each token can belong to only one collection.
I haven't had any issues with this schema for around the 6 months that we've been using it, but we wanted to try out drizzle studio and ran into that issue. The database is running on Planetscale, not sure if that's relevant.A
Angelelz•150d ago
I think your problem is that you have a relationName defined only on one side.
You have to either delete it or add it on both sides
The official Discord for all Drizzle related projects, such as Drizzle ORM, Drizzle Kit, Drizzle Studio and more!
7.1KMembers
View on DiscordWant results from more Discord servers?
More PostsDrizzle + Sveltekit + Cloudflare + Supabase cannot get to work.If I use Drizzle's docs, like :
```
import { Pool } from "pg";
import { drizzle } from "drizzle-orm/Type for select with relations?Is it possible to infer select with relations?
Currently im using:
```ts
export let user: typeof usdrizzle + postgres + express + ts, errors<https://gist.github.com/barrybtw/67c379371c3f52a61758c94474e8ebf8>
In regards to the route `auth_rrelation select query with where conditionI want to select all user's tasks where parent id is null.
Can someone help me fix this query pleasDrizzle Studio with AWS Aurora ServerlessHello All! I am having some troubles to run the Drizzle Studio Console.
I am using an AWS RDS Auroreslint-plugin-drizzle add "db" as defaultIs there a reason why it is automatically applied for every delete function? I think most users woul