pocketbase / site

PocketBase Site
https://pocketbase.io
MIT License
76 stars 49 forks source link

Improve docs for multitenancy apps use cases #64

Closed doceazedo closed 2 months ago

doceazedo commented 2 months ago

Having organizations/teams/tenants is a quite common scenario, and PocketBase docs is a bit lacking in that regard, despite supporting those cases very well, so here are some changes:

ganigeorgiev commented 2 months ago

The provided example, especially the back-relation, seems out of place for me.

I'm also not sure that I understand how exactly it helps mentioning "useful for apps that serves multiple tenants, organizations or teams" because in the shown examples the alias has no effect (or at least it is not clear why users should use it if there is no other @collection.* rule with the same collection).

In any case I will keep the above in mind when writing the new docs for v0.23 as part of the ongoing refactoring but for now I'm not going to merge the suggestions.