简体   繁体   中英

How to check If particular Id already in Firebase collection

Here, I want to check In All Documents that Uid is already exist or not if not

在此处输入图像描述

You simply have to query for this specific document and check if it exists as shown in the doc . You don't specify which language you are using so I cannot copy/paste the appropriate code but the different examples show exactly how to do, in particular by using the exists property/method of the DocumentSnapshot .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM