You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this will be in the best interest for all db users and it'll prevent errors with some nested levels that may be using dots in their keys. I said "/" to copy firebase behaviour .ref('posts/' + postId + '/starCount')
It'll be nice for 1.0.
Ex in Database.get(point) :
functionget(point){if(point&&typeof(point)==='string'){vartree=point.split('.'),parent=goblin.db;for(vari=0;i<tree.length;i++){if(i!==tree.length-1){if(typeofparent[tree[i]]==='undefined'){// If there is no child here, won't be deeper. Return undefinedreturnundefined;}parent=parent[tree[i]];}else{returnparent[tree[i]];}}}else{returngoblin.db;}}
The text was updated successfully, but these errors were encountered:
Cool. I used . because I've just wanted it to work. We could even move the nesting character to a configurable setting and set the default to / to be more friendly to firebase syntax.
I think this will be in the best interest for all db users and it'll prevent errors with some nested levels that may be using dots in their keys. I said "/" to copy firebase behaviour
.ref('posts/' + postId + '/starCount')
It'll be nice for 1.0.
Ex in Database.get(point) :
The text was updated successfully, but these errors were encountered: