I'm not sure there is a way, but can you get the keys from a JSON object within D1? I know I can get
I'm not sure there is a way, but can you get the keys from a JSON object within D1? I know I can get the values, but not sure about the keys.

__D1_BETA__DB__D1_BETA__DB and you will see lots of convos about it might be able to find something to fix it there
cf-bindings-proxy (v0.5.0) to fix this bug. json_each__D1_BETA__DB__D1_BETA__DB const [{ results: sessionResults},{ results: userFromJoinResults }]
= (await db.batch([ getSessionStatement, getUserFromJoinStatement
])); const batchRes = (await db.batch([
getSessionStatement,
getUserFromJoinStatement
]));
const sessionResults = batchRes[0].results
const userFromJoinResults = batchRes[1].resultscf-bindings-proxy