Channels
base generic repository
one-to-many self reference
Enforcing DB level foreign keys
Nested SQL select returning [x: string]: unknown type
drizzle-graphql - buildSchema doesn't support `ApolloFederationDriver`
ApolloFederationDriver
. Its main components is:
1) A GQL federation gateway: as super-graph (left-handed side in the code snippet image) and this will connect to distributed schema in other subgraph microservices
2) Subgraph microservices: this will hold actuall schema of GQL in each microservice (mid and right-handed side) the GQL schema will be generated from drizzle buildSchema
function....Fetching id from recently inserted data
Subquery in Delete
uuid becomes text in migration
any idea of how to implement sqlcommenter like functionality?
Not enough information to infer relation
Soft delete
After this new update I am getting an introspection error schema below "drizzle-kit": "^0.21.1",
export const usersRelations = relations(users, ({ one }) => ({
twoFactorConfirmation: one(twoFactorConfirmation),
}))
export const usersRelations = relations(users, ({ one }) => ({
twoFactorConfirmation: one(twoFactorConfirmation),
}))
Failed to load external module node:stream: TypeError: Native module not found: node:stream
Setting default timestamp in user table
Reverse Migration
Schema changes not detecting with sqlite
Fix mismatched schema and migration files.
Table definition to TS type
magic sql column naming
Should drizzle-kit introspect produce the same content as my existing schema?
drizzle-kit push
pushed to my prod server.
If I run a drizzle-kit introspect
should this pulled schema == my /lib/server/schema.ts?
I was under the impression it would be, and that it was prior to 0.21.0 upgrade but I could 100% be mistaken....