I have a users
collection where each user has a bunch of properties
users: {
<userid>: {
name: "",
email: "",
photo: "",
lastLogin: ""
}
}
With that structure, I want to build a search
functionality in my app where a user can search for other users.
What I want is for the users collection to be available on the client for searching/filtering but minus the lastLogin
attribute of each user. That is more like a private attribute.
How does one go about doing that? I literally dont want that attribute to even be sent over the wire.