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

Up for grabs: Create an example of the Firebase push() method #52

Open
LearningNerd opened this issue Jun 15, 2017 · 0 comments
Open

Up for grabs: Create an example of the Firebase push() method #52

LearningNerd opened this issue Jun 15, 2017 · 0 comments

Comments

@LearningNerd
Copy link
Member

⭐️ This challenge is up for grabs! Claim it by clicking "assign yourself" on the right, under the "Assignees" section for this GitHub issue! You can work on this by yourself or in pairs.

✔️ To complete this challenge: Post a comment at the bottom of this page with some instructions and sample code, so the rest of our team can learn how to use this new Firebase method by reading your comment!

You can edit your comment at any point to update your answer, so you don't have to do these all at once! To edit your comment after you publish it, click the pencil icon in the top right corner of your comment:
github-edit-comments

If you have any questions, please post a comment at the bottom of this page! (You can also ask us on Slack, but please post a comment here too so we can more easily reference it later.)

About the Firebase push method

📚 Official documentation: Firebase API section on the push method

The push method appends data to a list, creating a new child (nested object) inside the specific database location with an automatically-generated unique ID as its key (or property, in object terms!) so that you can easily add items to a list and later access them by their unique IDs.

Your challenge

🏆 The goal: learn how this method works, test it out for yourself, and then post a comment at the bottom of this page with some instructions and sample code to help teach the rest of our team!

Questions to keep in mind:

  • What does the official documentation say about this method?
  • When would we need to use this method? What are some example use cases? (Write some sample code for us, please!)
  • When should we not use this method? Can you think of any scenarios where using this method would cause errors or unintended side effects?
  • How many inputs does this method require, if any? What data types can the inputs be?
  • What does this method return as an output, if any? What data type is returned?
  • If there are different options for inputs, how does this method behave differently depending on the different possible input(s)?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant