firecmsco / firecms

Awesome Firebase/Firestore-based CMS. The missing admin panel for your Firebase project!
https://firecms.co
Other
1.13k stars 185 forks source link

Question: Does FireCMS support collection singletons #595

Open BartlomiejLewandowski opened 8 months ago

BartlomiejLewandowski commented 8 months ago

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

fgatti675 commented 1 month ago

Sorry for the late reply. It does not but it is something we might work on in V3 :)