google-cloud-firestore

How can I wait for data before it is available - flutter

时光怂恿深爱的人放手 提交于 2021-02-11 12:28:01
问题 @override void didChangeDependencies() async { if (_isInit) { print('First stat'); final restaurant = await Provider.of<Restaurants>(context, listen: false) .fetchAndSetRestaurants(); print('test'); } _isInit = false; super.didChangeDependencies(); } bool showFavourites = false; @override Widget build(BuildContext context) { return Scaffold( //bottomNavigationBar: BottomNavBar(), appBar: homeAppBar(context), body: SingleChildScrollView( child: showFavourites ? Padding( padding: const

Firebase functions RangeError: Maximum call stack size exceeded

烈酒焚心 提交于 2021-02-11 12:26:42
问题 I have a Callable function that uploads an image and update Firestore and Storage accordingly. The function does what it should do. but I still get this error: Unhandled error RangeError: Maximum call stack size exceeded here is the function: export const uploadImageToStripe = functions.https.onCall(async (data, context) => { let businessDoc: DocumentSnapshot try { if (!fireStoreDB) { fireStoreDB = admin.firestore(); fireStoreDB.settings(settings); } businessDoc = await fireStoreDB.collection

Firebase functions RangeError: Maximum call stack size exceeded

天涯浪子 提交于 2021-02-11 12:26:05
问题 I have a Callable function that uploads an image and update Firestore and Storage accordingly. The function does what it should do. but I still get this error: Unhandled error RangeError: Maximum call stack size exceeded here is the function: export const uploadImageToStripe = functions.https.onCall(async (data, context) => { let businessDoc: DocumentSnapshot try { if (!fireStoreDB) { fireStoreDB = admin.firestore(); fireStoreDB.settings(settings); } businessDoc = await fireStoreDB.collection

How to use pagination to Firestore Query using timestamp

你。 提交于 2021-02-11 12:20:10
问题 I wanted to query firestore database with the timestamp recently posted For ex: I have collection of posts Indexed with timestamp ascending and descending order when the user opens the feed it will show the today's date(timestamp Today Descending ) Posts. when the user scrolls it fetches next 3 ids and so on and ends with last item of today.But without ending with last item post of today I wanted to show the next day posts and so on for last seven days so the recycler view will be endless

FireStore permission denied on basic requests Xamarin Forms

给你一囗甜甜゛ 提交于 2021-02-11 09:41:28
问题 I have been struggling with this problem for a few days now and I am not making much progress, any help would be appreciated. I am new to FireStore but really like the possibilities it offers. I have successfully managed to get basic documents from Android and iOS apps using Plugin.CloudFirestore and Xamarin.Forms. However I need some back-end services, things like data set-up etc and need to be able to connect to FireStore via regular old C# desktop app. So I followed the quick start guide,

How to switch from Datastore to Firestore in existing project?

陌路散爱 提交于 2021-02-11 09:11:44
问题 I have an existing Google Cloud project which uses Datastore. I'm excited by Firestore and would like to switch. According to https://www.youtube.com/watch?v=SYG-BgXoJFQ it is recommended to create a new project. Is it possible to just nuke Datastore somehow (I don't care about the data) and start from scratch with Firestore? If not, what are the implications of creating a new project? 回答1: It is not possible to switch from Datastore to Firestore within the same project as yet, but you may

How to switch from Datastore to Firestore in existing project?

别来无恙 提交于 2021-02-11 09:11:31
问题 I have an existing Google Cloud project which uses Datastore. I'm excited by Firestore and would like to switch. According to https://www.youtube.com/watch?v=SYG-BgXoJFQ it is recommended to create a new project. Is it possible to just nuke Datastore somehow (I don't care about the data) and start from scratch with Firestore? If not, what are the implications of creating a new project? 回答1: It is not possible to switch from Datastore to Firestore within the same project as yet, but you may

How to switch from Datastore to Firestore in existing project?

拥有回忆 提交于 2021-02-11 09:11:26
问题 I have an existing Google Cloud project which uses Datastore. I'm excited by Firestore and would like to switch. According to https://www.youtube.com/watch?v=SYG-BgXoJFQ it is recommended to create a new project. Is it possible to just nuke Datastore somehow (I don't care about the data) and start from scratch with Firestore? If not, what are the implications of creating a new project? 回答1: It is not possible to switch from Datastore to Firestore within the same project as yet, but you may

How to switch from Datastore to Firestore in existing project?

半城伤御伤魂 提交于 2021-02-11 09:08:31
问题 I have an existing Google Cloud project which uses Datastore. I'm excited by Firestore and would like to switch. According to https://www.youtube.com/watch?v=SYG-BgXoJFQ it is recommended to create a new project. Is it possible to just nuke Datastore somehow (I don't care about the data) and start from scratch with Firestore? If not, what are the implications of creating a new project? 回答1: It is not possible to switch from Datastore to Firestore within the same project as yet, but you may

Is is possible to represent a firestore Query as string

巧了我就是萌 提交于 2021-02-11 06:11:31
问题 It is possible to represent a CollectionReference as a string with the getter proprety path . This is very handy for unit tests. For example admin.firestore().collection('cities').doc('LA').path returns "cities/LA" What about Query represented as String ? For example is there a way to something like this admin.firestore().collection('cities').where('name','==','LA').toString() to print something like this this: "cities/{where $name=='LA'}" This would be handy for unit testing 回答1: From this