score:1

Accepted answer

you can create a reference to the specific project data like this

var allprojectsref = new firebase('https://website.firebaseio.com/projects');
var projectref = allprojectsref.child('project-id-goes-here');

i'm guessing you want this to work for more than one project. you can pass this.props.params.key in as a variable like this:

var projectid = this.props.params.key;   
var allprojectsref = new firebase('https://website.firebaseio.com/projects');
var projectref = allprojectsref.child(projectid);

i'm not sure if this was intentional or just happened to be how you wrote the question, but most of the unique ids in firebase start with a hyphen, so if it's not returning anything, it might be because of that.

the complete documentation is available here: https://www.firebase.com/docs/web/api/firebase/child.html


Related Query

More Query from same tag