Skip to content

Commit

Permalink
include hint in query error
Browse files Browse the repository at this point in the history
  • Loading branch information
dwwoelfel committed Nov 26, 2024
1 parent e972fa3 commit 7f15399
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/packages/core/src/Reactor.js
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ export default class Reactor {
message: msg.message || "Uh-oh, something went wrong. Ping Joe & Stopa.",
};

if (msg.hint) {
errorMessage.hint = msg.hint;
}

if (prevMutation) {
// This must be a transaction error
const errDetails = {
Expand Down
17 changes: 17 additions & 0 deletions client/www/pages/docs/instaql.md
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,23 @@ console.log(data)
}
```
### Comparison operators
The `where` clause supports comparison operators on fields that are indexed and have checked types.
{% callout %}
Add indexes and checked types to your attributes from the [Explorer on the the Instant dashboard](/dash?t=explorer) or from the [cli with Schema-as-code](/docs/schema).
{% /callout %}
| Operator | Description | JS equivalent |
| :------: | :----------------------: | :-----------: |
| `$gt` | greater than | `>` |
| `$lt` | less than | `<` |
| `$gte` | greater than or equal to | `>=` |
| `$lte` | less than or equal to | `<=` |
### $not
The `where` clause supports `$not` queries that will return entities that don't
Expand Down

0 comments on commit 7f15399

Please sign in to comment.