skip to Main Content

Flutter – Function returns null

var result; void searching() async{ var searchData = await FirebaseFirestore.instance.collection('users').where('email',isEqualTo: userEmail).get(); setState(() { result = searchData.docs.first; }); } void addFollowing(var username , var email , var phoneNumber) async{ searching(); await FirebaseFirestore.instance.collection('users').doc(result).collection('following').doc().set({ 'username':username, 'email':email, 'phoneNumber':phoneNumber }); print(result); } I have two…

VIEW QUESTION

Firebase initialize issue

I am trying to initialize firebase in my project. I need to use the Google Auth feature, which is already enabled on the console of firebase. The method I am calling is the following: import firebase from 'firebase/compat/app'; import {…

VIEW QUESTION

Firebase functions V2: Memory Configuration

How to set options {memory: "1GiB"} on firestore triggered cloud function. I can't find it in the documentation: https://firebase.google.com/docs/functions/2nd-gen-upgrade There is an exemple for https functions but it seem to have a different syntaxe for onDocumentCreated(), etc.. export const statisticsDataCreated…

VIEW QUESTION
Back To Top
Search