Ok so I'm unsure if I'm understanding this documentation correctly, but it seems there are `json` he

Ok so I'm unsure if I'm understanding this documentation correctly, but it seems there are
json
helper functions for use with your SQL queries i.e. SELECT * ... or db.prepare("SELECT * ...

I'm just trying to understand how to put it into practice -
I have
const data = db.prepare("SELECT * FROM profiles WHERE user_id = ?").bind(id).first()`


This data is already just about what I want, except my fields_of_study key is the string "['Major 1', 'Major 2']".

Am I storing the data incorrectly in the column or do I need to restructure my query so that D1 will parse the array into a javascript object?
Was this page helpful?