Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

Below code works fine until today. But I don’t know now it is not working and gives below error.Could you tell me why? Error: Function DocumentReference.set() called with invalid data. Unsupported field value: a custom Budget object export class Project { ...

  • 0

I’m trying to retrieve my documents with id but can’t figure it out. Currently I retrieve my documents like this : const racesCollection: AngularFirestoreCollection<Races> = this.afs.collection('races'); return racesCollection.valueChanges();I do get my documents list perfectly, however there is no doc id with them. How ...

  • 0

I’m learning Angular looking for help in fixing the error: I’m following this link : https://github.com/angular/angularfire2/blob/master/docs/install-and-setup.md to create a angular small app with angular2 and angularfirestore2 but when I hit ng serve I am getting the below error in browser console.. StaticInjectorError[AngularFirestore]: ...

  • 0

weight is a field (Number in Firestore), set as 100. int weight = json['weight']; double weight = json['weight']; int weight works fine, returns 100 as expected, but double weight crashes (Object.noSuchMethod exception) rather than returning 100.0, which is what I expected. However, the following works: num weight = json['weight']; num.toDouble();

  • 0

Working on Android app using flutter. Trying to fetch documents from firestore & show on the screen through a widget. Here is my code… import 'dart:async'; import 'dart:io'; import 'package:flutter/material.dart'; import 'package:shared_preferences/shared_preferences.dart'; import 'package:image_picker/image_picker.dart'; import 'package:firebase_storage/firebase_storage.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:http/http.dart' as http; import 'dart:convert';class HomePage extends StatefulWidget { ...

  • 0

I am trying to build an app using Flutter and Firestore. When loading a Collection from Firestore using StreamBuilder to display it in a ListView, I get the following error The following assertion was thrown building StreamBuilder<QuerySnapshot>(dirty, state: I/flutter (26287): _StreamBuilderBaseState<QuerySnapshot, AsyncSnapshot<QuerySnapshot>>#d5638):I/flutter ...

close