Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL Json type issue #176

Open
dotMortis opened this issue Jul 23, 2024 · 0 comments
Open

MySQL Json type issue #176

dotMortis opened this issue Jul 23, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@dotMortis
Copy link

dotMortis commented Jul 23, 2024

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();

image

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@RobinBlomberg RobinBlomberg added the bug Something isn't working label Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants