Skip to content

Commit

Permalink
Merge pull request #59 from CRBroughton/56-add-documentation-on-sorting
Browse files Browse the repository at this point in the history
docs: 📝 add documentation for sorting functionality
  • Loading branch information
CRBroughton authored Apr 8, 2024
2 parents a503750 + f52df9a commit 5cd73ef
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,19 @@ const updatedEntry = Update('firstTable', { // infers the table and response typ
}
})
```
### Sorting

Sibyl offers some basic sorting options, whenever you're returning
entries from the database:

```typescript
const actual = All('firstTable', {
sort: {
name: 'ASC', // This can be 'ASC' or 'DESC'
},
})
```

### Primary type

Sibyl offers a custom type, called the 'primary' type. When using
Expand Down

0 comments on commit 5cd73ef

Please sign in to comment.