Kamilius
Kamilius
DTDrizzle Team
Created by Kamilius on 4/5/2024 in #help
Can not open Drizzle Studio in browser
Now everything works like a charm 🙂 How to mark an answer as "Resolved"?
10 replies
DTDrizzle Team
Created by Kamilius on 4/5/2024 in #help
Can not open Drizzle Studio in browser
@Aaroned Thanks, you've pushed me toward commenting out everything, and then start to uncomment piece-by-piece. The issue was - missing property specification in relations. Ex:
// was
...
requiredKnowledgeLevel: one(knowledgeLevels, {
fields: [interviews.requiredKnowledgeLevelId],
references: [knowledgeLevels]
}),

// became
...
requiredKnowledgeLevel: one(knowledgeLevels, {
fields: [interviews.requiredKnowledgeLevelId],
references: [knowledgeLevels.id] // <---- this place right here. `.id` was missing, which caused JSON circular reference
}),
...
// was
...
requiredKnowledgeLevel: one(knowledgeLevels, {
fields: [interviews.requiredKnowledgeLevelId],
references: [knowledgeLevels]
}),

// became
...
requiredKnowledgeLevel: one(knowledgeLevels, {
fields: [interviews.requiredKnowledgeLevelId],
references: [knowledgeLevels.id] // <---- this place right here. `.id` was missing, which caused JSON circular reference
}),
...
10 replies
DTDrizzle Team
Created by Kamilius on 4/5/2024 in #help
Can not open Drizzle Studio in browser
Yes, I've seen this one, but the thing is not in querying, but with starting Studio at all
10 replies
DTDrizzle Team
Created by Kamilius on 4/5/2024 in #help
Can not open Drizzle Studio in browser
Sorry, it's around 140 lines...
10 replies
DTDrizzle Team
Created by Kamilius on 4/5/2024 in #help
Can not open Drizzle Studio in browser
@Aaroned sure, here it is:
10 replies