Nicolas
Nicolas
CCConvex Community
Created by timahuna on 7/7/2023 in #support-community
Extra user metadata in auth ctx (for clerk)
Could it be an option for you to store the user metadata directly in the Convex database? https://docs.convex.dev/auth/database-auth
9 replies
CCConvex Community
Created by Gorka Cesium on 6/24/2023 in #support-community
union kind
Glad to hear this!
7 replies
CCConvex Community
Created by Gorka Cesium on 6/24/2023 in #support-community
union kind
When you patch a document that has a union schema, the same rules apply as when you’re using regular documents. Just keep in mind that since you’re using object fields in your last example, the whole object field will be replaced by db.patch. For instance, you can do this on a document that has tag JobWindow:
db.patch(id, {
value: { width: 100, height: 200 },
});
// ✅
db.patch(id, {
value: { width: 100, height: 200 },
});
// ✅
But this won’t work, because it will try to remove the height field from the object:
db.patch(id, {
value: { width: 100 },
});
// ❌
db.patch(id, {
value: { width: 100 },
});
// ❌
7 replies
CCConvex Community
Created by Dan Mercer on 7/3/2023 in #general
Announcing Convex 0.18.0
That is a mistake, thank you for reporting it!
2 replies