Skip to content

Commit

Permalink
Update query manual
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed May 21, 2024
1 parent 3a765e1 commit 9688759
Show file tree
Hide file tree
Showing 3 changed files with 716 additions and 614 deletions.
4 changes: 2 additions & 2 deletions docs/FlecsQueryLanguage.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ The `any` (`_`) wildcard returns at most one result per wildcard. The following
(Likes, _)
```

If an entity has both `(Likes, Dogs)` and `(Likes, Cats)`, the query will only return one result. The location of the `any` wildcard in the matched id will be replaced with `*`, indicating that no specific pair was matched. The above query would return the following id:
If an entity has both `(Likes, Dogs)` and `(Likes, Cats)`, the query will return only one result. The location of the `any` wildcard in the matched id will be replaced with `*`, indicating that no specific pair was matched. The above query would return the following id:

- `(Likes, *)`

Expand Down Expand Up @@ -239,7 +239,7 @@ Position($this), Velocity($this)

Note how both terms have the same `$this` source. Using the same variable ensures that both components are matched on the same entity.

The following expressions show to use pair queries without and with explicit source:
The following expressions show how to use pair queries without and with explicit source:

```swift
// Implicit source
Expand Down
Loading

0 comments on commit 9688759

Please sign in to comment.