Can't access a key via the ref key combination.
Type of available keys leads to never.
Here is an example:
import { Kysely } from 'kysely';
import { Json } from 'kysely-codegen';
// create a table with json values as it would be generated by codegen
type TestDB = {
testTable: {
testJsonColumn: Json;
};
};
const db = {} as Kysely<TestDB>;
// query the json field
await db
.selectFrom('testTable')
.select(b => b.ref('testJsonColumn', '->$').key('someKey').as('myKey'))
.execute();
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too