Skip to content

Commit

Permalink
Doc updates
Browse files Browse the repository at this point in the history
  • Loading branch information
vampirical committed Mar 7, 2024
1 parent ea0996d commit ca6fb44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ await User.find({id: SQL.or(1, 2)});
// You can use sub-queries.
await User.find({
id: SQL.and(
QueryTestRecord.query({displayName: SQL.notEqual('Max Power')}, {returns: 'id'}),
User.query({displayName: SQL.notEqual('Max Power')}, {returns: 'id'}),
SQL.greaterThan(10)
)
});
Expand All @@ -165,7 +165,7 @@ There are a few things you can't do.
// You can't nest sub-queries inside of value arrays.
// It isn't worth the performance hit necessary to check for them
// and you can just wrap the query and the values using an AND.
SQL.any([QueryTestRecord.query({id: 1}, {returns: 'id'}), 100])
SQL.any([User.query({id: 1}, {returns: 'id'}), 100])

// You can't nest field keys under another field key.
// Even in this best case, it is silly, in the worst case it is nonsense.
Expand Down

0 comments on commit ca6fb44

Please sign in to comment.