我有一个很大的注册列表,我希望将其显示在最常用的前5个列表中,如下所示:
我不知道使用Firebase Cloud Firestore查询此类操作会是什么样子。要从subject中的集合中检索数据,我使用以下命令:
getUserRegistrations() {
var user = firebase.auth().currentUser;
var userUID = user.uid;
db
.collection("registrations")
.orderBy("date", "desc")
.
我们正在尝试从Firebase实时数据库中检索数据。
当我们尝试使用PostMan将Firebase中显示的URL添加到我们的项目数据中,并在末尾添加".json“,如下所示...
https://our_project.firebaseio.com/rest/our_data.json
...we收到"user not authenticated“错误。
如果我们尝试使用该URL检索数据,使用web api密钥,如下所示...
https://our_project.firebaseio.com/rest/our_data.json?auth=[our web api k
我使用下面的lambda函数,我从firebase获得了在firebase中添加记录的数据
'use strict';
var MongoClient = require('mongodb').MongoClient;
let atlas_connection_uri;
let cachedDb = null;
let firebase = require('firebase');
exports.handler = function(event, context,callback)
{
// var uri = process
如何通过端点只发送集合中文档的名称?
import { db } from '../../lib/firebase';
export default async function handler(req, res) {
const user = await db
.collection('readings')
.get();
if (!user.exists) {
return res.status(404).json({});
}
return res.status(404).toArray(user.id);
希望你身体健康。我有个问题。 export function fetchListing() {
return function (dispatch) {
dispatch(fetchListingRequest());
//Getting Listing where status is in_review
firebase
.firestore()
.collection("listings")
.where("status",
我知道如何在firebase中更新在用户中签名的密码:
var user = firebase.auth().currentUser; //get current connected user
return user.updatePassword(newPass)
.then(
() => //success
)
.catch(error => this.handleError(error))
}
但我不知道如何处理未在用户中签名的。也许只有用这样的电子邮件才能检索用户的坚持(但没有办法做到这一点):
var user
如何通过id firebase检索数据--我正在尝试使用
//get zone details
db.collection('zone').where('id','==','8JQb8o3RJWm5bTwR8qOZ').get().then(snap =>{
// get childs data
snap.docs.forEach(doc =>{
this.setState({zone:doc._data});
我试图从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(