charlieC
Convex Community3y ago
2 replies
charlie

"Field '_bRK...' starts with an underscore, which is not allowed for nested fields"

Hey team, I'm getting this error in a webhook (my Convex HTTP action) which looks up a document from an external database to copy it into Convex.

The document in question has a field "events" which is a POJO mapping event IDs to events. One of the event IDs (generated by nanoid on the client side) apparently started with an underscore, which is causing Convex to reject the db.patch in the mutation called by my HTTP action, causing the webhook to return a failure code (because of my try/catch) and enter an infinite retry loop.

However, "events" is typed in my schema as v.any() , so why does it matter what its keys are? Is this intended behavior?
Was this page helpful?