Last active
October 16, 2017 21:21
-
-
Save georgesboris/d11a8ce8bb3d080d4773a850a09b0e94 to your computer and use it in GitHub Desktop.
firebase-app - paths
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
posts: 'posts', | |
post: postId => `posts/${postId}`, | |
postTitle: postId => `posts/${postId}/title`, | |
postBody: postId => `posts/${postId}/body`, | |
postCreatedAt: postId => `posts/${postId}/createdAt`, | |
postCreatedBy: postId => `posts/${postId}/createdBy`, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment