Firebase Database Generated Primary Key

Join GitHub today

Data In Firebase Storage Format. Data is stored in firebase as a large JSON document. It is the same case as it is done in most of the NoSQL database systems like MongoDB, Cassandra, CouchDB etc. The data is stored as a large objects which can hold key value pairs where value can be a string, number or another object. Managing Data in Firebase.

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign upDatabase 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

Labels

Comments

commented Jun 7, 2016

Angular: 1.5.3

Firebase: 3.0

AngularFire: 2.0.1

This is my old method:

New method?

commented Jun 7, 2016

There's no AngularFire code here. Not really sure how this relates to the bindings lib.

For an example of the API usage of push(), see here.

Firebase Database Generated Primary Key Definition

closed this Jun 7, 2016

Firebase Database Generated Primary Key Of Florida

added the type: question label Jun 7, 2016

commented Jun 7, 2016

key is now a read-only property, not a function. So, you would do this:

var newAppKey = appRef.push().key;

See here for the full list of changed methods.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment