How to update and compare data from database?

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]
}

You could try it to see if it works.