amitlzkpaA
Convex Community13mo ago
1 reply
amitlzkpa

Backtick v/s double-quotes in table records?

Hi everyone! I’m trying to export some records from a Convex entry for testing/debugging purposes, and I’ve run into a formatting issue that I need some clarity on. Here’s what’s happening:

- I used the right-click "Copy" option to get the data to my clipboard, intending to paste it into my IDE for inspection.
- I expected the data to be JSON, but it seems there’s a difference: some text fields (generated using text interpolation at creation time) are stored in a backtick-encapsulated format rather than double quotes.

While this looks nice in the Convex dashboard, it’s causing issues for me in the IDE. I have a few questions:

- What is the difference between backtick-encapsulated text and double-quoted text in Convex records?
- Can I assume that records stored in Convex tables are JSON values if they were created as javascript objects?
- The tables currently don’t have schemas. If I decide to adopt a schema later (ensuring it’s compliant with existing data), will it affect how the existing records are read? For example, if I assign a string type to these values, will they automatically convert to double-quoted text in the records?

Thanks in advance for any guidance!
image.png
Was this page helpful?