Should i use setUserData only for updating?

Hello,
I’m using setUserData function to saving some kind of information to Moralis database.
But the problem is setUserData function is only updating the old value, in this case the old value will be gone…
I need all old data and the new ones, how can i do that?
Thanks!

You can refetch data https://github.com/MoralisWeb3/react-moralis#refetch-user-data-refetchuserdata. You can check that out if that’s what you need

1 Like

That is make sense, i guess i can refetch the current data then use the setUserData saving to the old data + new data both.
Thank you very much…