Deleting a content in list of things field

Say i have pictures. in the pictures data base there is a field named “liked” which is a list of things. so when a user liked those particular pic, it will add current user unique id into “liked” list of things. now say the user want to unlike those pic, how do i del his unique id in “liked” list of things? @fayewatson @romanmg

Make a change to Picture: Liked remove Current User’s unique ID

Check out this tutorial for modifying lists: https://www.youtube.com/watch?v=4BB4mZp_C3Q

2 Likes

You’re going to be kicking yourself… wait for it…

Lists also have a :minus item operator that can do the same thing but inline in an expression.

1 Like

But more correctly: The OP should not be adding the User’s Unique ID to such a list… they should be adding the User

@acap: do not make things harder than they need to be. A list of Users is a list of Users, NOT a list of User’s unique IDs.

2 Likes

Yes, agreed.

so i shouldnt use delete a things, instead use create a new thing, then select the list of things n remove? btw how do just add the user? the instruction requires me to select curent user’s (user field). that is why i choose unique id.

you can make changes to a thing
https://puu.sh/CSnf6.png

got it! thats where my mistake is. thak you guysss

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.