Firebase: Security rules for a collaborative app
问题 I'm writing a note sharing app and I'm trying to find the best approach for the data structure to allow adding collaborators to user notes, while at the same time having sensible security rules for the structure in question. What I have now is the following: "users": { "johndoe": { "notes": { "note1Key", "note2Key" } }, "jane": { "notes": { "note3Key", "note4Key", "note5Key" } } ... }, "notes": { "note1Key": { // actual note data }, "note2Key": { // actual note data }, "note3Key": { // actual