Skip to content

Commit

Permalink
Fix syntax error in select section of query-building.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianWalters committed Jul 14, 2023
1 parent 57d138d commit e4082ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/query-building.md
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ Groqd provides a `.select` method to mirror this operator. This method provides

```ts
q('*').grab({
strength: q.select(
'base.Attack > 60': ['"strong"', q.literal('strong')]
strength: q.select({
'base.Attack > 60': ['"strong"', q.literal('strong')],
'base.Attack <= 60': ['"weak"', q.literal('weak')]
)
})
})
```

Expand Down

0 comments on commit e4082ea

Please sign in to comment.