Why in some cases, the firebase node is created as a string with double quotes "" and in another cases as a string with no quotes.
for example: ----dates | 022022-- | "022022"--
Thanks for the help
Why in some cases, the firebase node is created as a string with double quotes "" and in another cases as a string with no quotes.
for example: ----dates | 022022-- | "022022"--
Thanks for the help
I solved the problem by simply adding the .trim()
method to myString
before calling the save command. Example:
movimentacoes_ref = firebaseref
.child("movimentacao")
.child(id_Usuario)
.child(mesAno); // give me a "mesAno" node in firebase.
and
movimentacoes_ref = firebaseref
.child("movimentacao")
.child(id_Usuario)
.child(mesAno.trim()); // give me a mesAno node in firebase.