Question: let's say I have an HTML structure like this:

```
<div class="first">
    <div class="sub-1">
        <div class="first again"></div>
    </div>
</div>

```

How do I select only the div that has the class "first" but which is NOT inside the div that has the class "sub-1". In order words, how do I get only the outer div but extract any div inside that outter div that have the same class than the outter div (I want to get just the div with class="first", not the one with class="first again").

Thank you

Answer: 
Answering my own question for anyone's delight. 

I think i solved it not sure.  

It looks like it's working im testing when the `fileObjects` have many `Files`.  

The right `fileHash` is updated indeed.

```
UpdateOperations<BatchData>updateOperations=mongo.createUpdateOperations
             (BatchData.class)
            .disableValidation().set("fileObjects.$.fileHash",hash).enableVali..;

mongo.update(mongo.createQuery(BatchData.class)
            .filter("uuid",theBatch.uuid)
            .filter("fileObjects.fileName","theFileName"),updateOperations);

```
In my case I was able to use the removeAll method:

```
UpdateOperations<MyType> ops = ds.createUpdateOperations(
            MyType.class).removeAll("myEmbeddedList", "thevalue");
ds.update(ds.find(MyType.class).get(), ops);

```

This assume that MyType has the field List myEmbeddedList; and that there is a vlue "thevalue" to be removed from the list.