📜  merge :true 未在 firebase 中定义 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:16.442000             🧑  作者: Mango

代码示例1
to set the merge option in set property

SetOptions(merge:true)

 dataBase.collection('user').doc(userData.displayName).set({
        'Name': userData.displayName,
        'Email': userData.email,
        'Login': userData.uid,
        'PhotoUrl': userData.photoURL,
        'LastSignIn': DateTime.now()
      }, SetOptions(merge: true));