---
# System prepended metadata

title: Untitled

---

```typescript=
import { added } from "dreki/filters";


function testSystem({ query, commands }: World) {
    for (const [pos] of added(Position)
        .with(Velocity)) 
    {
    
    }
    
    added(Position)
        .with(Velocity)
        .forEach(([p, v]) => {
    
    });
}

function testSystem2({ query, commands }: World) {
    for (const [pos] of query(added(Position), Velocity)) {
    
    }
    
     query(added(Position)).forEach(x => {
     
     });
}


Query
QueryWithFilters
QueryWithRemovedFilters



```