Hi! Below is my object from database.
I have 2 things I want to accomplish, first is to fetch if the user contains its wallet address in the âlikedâ array.
Should I do it like this?
query.equalTo(âtokenIdâ, tokenId).containedIn(âfavorites.likedâ, user.get(âethAddressâ)
The next one is I want to update the liked array to add the one who liked the nft.
Is it done using this?
favorites.set(âfavorites.likedâ, âtest2.ethâ)
{
"tokenId": tokenId,
"likeCount": 0
"liked": [0x00, test.eth]
}