我正在做一个投诉门户,我想给注册的人分配身份证。我在firebase中的数据结构如下所示:
fir-web-learn-51ffc
complaint
-Kwe6QXol8DV-uMDxIe7:"Hiii"
-KweCaYQrgG75BiJW3dA:"Hooooo"
我使用了这个代码来插入:
function submitClick()
{
var complaint=document.getElementById('complaint').value;
var database=firebase.database().ref().
我循环了firebase数据库上的两个引用,以获取一些数据并将它们显示在页面上。我想要按名称对结果进行排序,但它不起作用,总是按照元素在数据库中的顺序返回它们。这是我的代码:
var ref = firebase.database().ref('/point_of_interest/'+this.poi.chiave+'/tags/')
var ref1 = firebase.database().ref('/tag/');
let tagShow = [];
ref.once('value', function(snapsho
我试图从firebase中检索数据,但是如果我添加了orderBy()和EquatTo(),就会出现这个错误
下面是我的代码:
var firebase = new FirebaseClient("https://xxx-xxx.xxxx.com/");
var _item = await firebase.Child("Pc and Laptops")
.OrderBy("ProductID")
.EqualTo("ID")
.WithAuth(
我正在尝试制作一个firebase云函数来从Firebase数据库中删除一个节点。日志消息显示函数执行"ok“,但似乎没有从数据库中删除任何元素。我根据中接受的答案编写了这个函数,下面是代码片段
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
//path is defined as the value to be dele
我试图在我的安卓应用程序中执行orderByChild操作,我收到了这样的警告:Using an unspecified index. Consider adding '".indexOn": "timestamp"' at users/4Gc9OgFWw5hwr2YFxbfwLgyAp1V2/posts to your security and Firebase Database rules
我就是这样构造我的数据库的:
这是我试图添加到数据库中的规则:
{
"rules": {
".read":
我试图限制我从防火墙返回的数据的数量,目前它带来了所有明显不好的东西。
有可能把最近的10排带回来吗?我看的是limitToFirst(极限),但在我的代码中无法很好地实现语法。有什么帮助吗?谢谢
现行工作守则:
var myDataRef = new Firebase("https://xxxxx.firebaseio.com/");
$('#btnSubmit').click(function() {
var u = $('#nameIpt').val();
var m = $('#msgI
我想从Firebase数据库删除特定值以下是我存储的数据库
现在,我想删除以下值
fname: "John"
lname: "wick"
Here, What i have try to delete specific value from Firebase..
DatabaseReference demo = mReference.child("demo").orderByValue().equalTo("John").getRef();
demo.addListenerForSingleValue
我希望使用jquery从具有值的firebase数据库中删除一个值。
我想从防火墙中删除235值。
我试过..。
var dbRef = new Firebase("https://afgani-cinemas.firebaseio.com/");
var showId = getUrlParameter('showId');
var bookings = dbRef.child('bookings/'+showId);
function removeFromFB(seatId){
dbRef.orderByValue().
function getPending(friendships) {
var myTable= "";
var userId = getUserId('username');
for(let key in friendships){
if(friendships.hasOwnProperty(key)){
if(friendships[key].recvId == userId) {
// Do Something with it. Access it via users[key]
myTa