knaadh / nestjs-drizzle

A NestJS module for integrating DrizzleORM with Postgres, MySQL, SQLite, Turso and Planetscale drivers
MIT License
132 stars 8 forks source link

How do I set values in a table? #16

Closed Weronnip closed 3 months ago

Weronnip commented 3 months ago

Something like this, what should I do?

async postData() {
    const newUser = await this.drizzleTrello.insert
    return {
      newUser: newUser,
    };
  }
mithleshjs commented 3 months ago

Consult Drizzle docs for that - https://orm.drizzle.team/docs/insert

Weronnip commented 3 months ago

Thank you!