【发布时间】:2017-10-27 09:28:10
【问题描述】:
我正在尝试将数据添加到 Firestore,但我需要将其保存为数字。问题是,Firestore 默认情况下会自动将所有内容存储为字符串。你如何改变它?
//Add to Firestore
this.afs.collection(placeToSearchSubmit).add({
title: thingName,
type: thingType,
value: thingValue <-- I need this to be a number
});
【问题讨论】:
标签: angular google-cloud-firestore