Linking teams with Clerk organizations
I've looked at the saas-starter https://github.com/xixixao/saas-starter, and I'm looking to do something similiar and I was wondering, should I create a Clerk organization for each team? Instead of handling the invites by myself like in the example I could use their org features one of them being the invites and etc
Are there downsides to this approach?
6 Replies
Also I'm trying out ents and I'm getting this error:
for this schema:
I built this schema following the saas starter and for some reason this error pops up
re: the ent schema error, I might be wrong here, but I think ents assumes you can pluralize an edge by adding an
s
at the end, so .edge("user")
is an edge to "users"
but .edge("business")
gets interpreted as an edge to "businesss"
(just adding an s
at the end).
I'm not sure what the best way to work around this would be, but I'd maybe try out edge("businesse")
(which will get interpreted as an edge to "businesses"
) to see if that might be the issuethanks! I spent so much time trying to figure this out lol
I might be wrong, but I think it's not documented in the ent docs. I read it a few times and didn't see any mention of pluralization
it's also the same with category -> categorie
Sorry about that, I'll update the Ent docs
You can use
to control the naming.
To your original question, using Clerk is a different approach that you can certainly take. Use webhooks to sync the Clerk data to Convex:
https://www.convex.dev/templates/clerk
Templates
The backend application platform with everything you need to build your product.
thanks! really like Ent thanks for your work 🙂