Query Pre-processing for JSON Schema Storage
My first instinct was to use an Object data-type, but because Convex disallows keys starting with
$ that idea was out.So I figured I could just use some serialization in the handler to store the JSON Schemas as plain text:
But it seems like the handler is pre-validating the args and rejecting the JSON Schemas because of the keys that start with $.
I'd love for this serialization to happen auto-magically when creating / retrieving records—is there a preprocessing hook or something I can tap into to coerce the args into an acceptable format?
