WGW ☂ calldata.space
Explore posts from serversDTDrizzle Team
•Created by WGW ☂ calldata.space on 12/8/2024 in #help
Drizzle GraphQL bug with SQLite JSON (Turso)
I'm not doing anything for the graphql, it's
drizzle-graphql
and it should handle sqlite json fields properly.8 replies
DTDrizzle Team
•Created by WGW ☂ calldata.space on 12/8/2024 in #help
Drizzle GraphQL bug with SQLite JSON (Turso)
Yeah, on orm query it works, but not on the graphql frontend. That's the thing if it was returning it like stringified json array it would still be okay, like it does for
royalties
which it returns like stringified object. But instead it throws errors for that links
case.8 replies
DTDrizzle Team
•Created by WGW ☂ calldata.space on 12/8/2024 in #help
Drizzle GraphQL bug with SQLite JSON (Turso)
oh wait, that last thing worked, okay. I was setting
created_at: Date.now()
when inserting.
The OP is still valid problem tho.8 replies
DTDrizzle Team
•Created by WGW ☂ calldata.space on 12/8/2024 in #help
Drizzle GraphQL bug with SQLite JSON (Turso)
I'm also having similar error when read timestamps
neither
integer({ mode: timestamp })
, nor with .defaultNow
It works when it's passed as orderBy: { created_at: {direction: asc } }
, but know when i ask for the field8 replies
DTDrizzle Team
•Created by WGW ☂ calldata.space on 12/8/2024 in #help
Drizzle GraphQL bug with SQLite JSON (Turso)
Oh, just seen i've got errors on the terminal:
I'm guessing that's the value from the database but it cannot read it properly from
text(mode: json)
8 replies
DTDrizzle Team
•Created by WGW ☂ calldata.space on 12/8/2024 in #help
Drizzle GraphQL bug with SQLite JSON (Turso)
The
royalties
field is "json type" in the schema.
Here's the full schema:
When i try to read team
or links
it throws error too.8 replies
DTDrizzle Team
•Created by BBuubbaa on 12/5/2024 in #help
Inferring schema with drizzle-zod in sveltekit app
i would probably extract them outside on a different place, then import it in the
lib/server
and in the client side the same.2 replies