erquhartE
Convex Community2y ago
6 replies
erquhart

Support for serializing undefined values

I like that Convex supports undefined as a value via unsetting. I avoid null throughout my entire app, but that leaves me working around communicating undefined values from the client to the backend.

Would be cool if Convex's react and backend libs could work together to support undefined as a serializable value, maybe by using a special value under the hood. My current plan is to probably go through my app and use null everywhere that the client wants to send undefined, and then convert the nulls to undefined in my mutations, but would love to not need to do this.

Also open to smarter workarounds, especially if they save time.
Was this page helpful?