associated Firebase data with Users

associated Firebase data with Users How to Connect Firebase Users to their Data - 3 Methods

  • Keep data shallow in NoSQL vs SQL

  • use auth state to get current user id. And then can do queries based on that auth state, for items nested under that user id.

  • firebase security rules on firestorm

Other option

  • adding user id on the item

Multiple users

ADR around reasoning to design of schema and security

Example of implementation

Last updated