Closed Julius-Bendt closed 1 month ago
Hi there! First of all - thanks for this package! I'm happy that something like eloquent exists for Node
Given the examples in https://sutando.org/guide/query-builder.html#insert-statements:
const db = sutando.connection(); await db.table('users').insert({ email: 'kayla@example.com', votes: 0 }); const deleted = await db.table('users').where('votes', '>', 100).delete();
I get the following error: Property 'insert/delete' does not exist on type 'AnyQueryBuilder'.
Property 'insert/delete' does not exist on type 'AnyQueryBuilder'
I've tried to typecast as follows: const db = sutando.connection() as QueryBuilder<any, any>; but with the same result.
const db = sutando.connection() as QueryBuilder<any, any>;
Thanks for the feedback. it has been resolved in v1.6.2.
Thanks for the quick answer and fix! :D
Hi there! First of all - thanks for this package! I'm happy that something like eloquent exists for Node
Given the examples in https://sutando.org/guide/query-builder.html#insert-statements:
I get the following error:
Property 'insert/delete' does not exist on type 'AnyQueryBuilder'
.I've tried to typecast as follows:
const db = sutando.connection() as QueryBuilder<any, any>;
but with the same result.