0

Using knex, when we do this:

export const db = knex({});
db<{ id: string, name:string }>("").select("");

This select get code suggestion from the typescript vscode extension.

But if we do this with objection:

export class Budget extends Model {
  static tableName = "budget";
  static idColumn = "id";

  id!: number;
  name!: string;
}

const budget = Budget.query().select("")

This select doesn't. Why is this happening?

0 Answers0