Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Does FireCMS support collection singletons #595

Open
BartlomiejLewandowski opened this issue Nov 29, 2023 · 0 comments
Open

Question: Does FireCMS support collection singletons #595

BartlomiejLewandowski opened this issue Nov 29, 2023 · 0 comments

Comments

@BartlomiejLewandowski
Copy link

I am a bit new to firebase but I have the following usecase.

A en entity has some public and private data, I can create a new entity within firecms by defining multiple fields.
Firebase doesn't support per field restrictions, but it does support restricting access per document.

The suggested solution in firebase is to create a collection named private, and restricting access to all documents within that collection.

In my use case I now have

a document at type/{id}
a private collection at type/{id}/private
and a single document at type/{id}/private/data

I am wondering if there is a way to configure FireCMS to map a field or a set of fields to this static document in the subcollection.

So the UI would show the fields as configured, and an additional section for fields in said document.

I am aware that FireCMS supports subcollections, but it looks like this feature is aimed at subcollections of variable size and generated ids.

Also, thanks for creating such an awesome tool, I was impressed by how easy it was to set up my workflow, and it does seem that I can extend the library easily.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant