Can a graphql resolver change the data of another resolver if it is double nested in nodejs?

I have a query that contains all users.

query{
    Users:[User]
}

I’ve made the resolver for the favoriteColors and then similar as a child of the favoriteColors . I would like to be able to filter the Users from the similar argument hex . So that if I query Users like this:

query Users($filterColor: String){
    users{
        id
        favoriteColors{
            similar(hex: $filterColor){
                hex
            }
        }
    }
}

Then in the resovler for similar would I then be able to filter the result of the users so only the users with a certain similar hex color would show up?

type User{
    id:ID
    firstname:String
    email:String
    favoriteColors:[Color]
}
type Color{
    id:ID
    hex:String
    name:String
    similar(hex:String):[Color]
}

I was thinking something like parent.parent but it seems like it returns the root users list before reaching the similar child. I am only able to access the parent of a resolver.

If the filter is supposed to query the users, I would personally pass it to the parent and not a nested resolver.