Skip to content

Commit

Permalink
feat: attempt at fixing broken ci
Browse files Browse the repository at this point in the history
  • Loading branch information
fhur committed Apr 17, 2024
1 parent eef1c8b commit 809a09f
Show file tree
Hide file tree
Showing 6 changed files with 8,579 additions and 8,515 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ jobs:
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile
run: yarn install --frozen-lockfile
- name: Build website
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn build:docs
run: yarn build

- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
Expand Down
15 changes: 8 additions & 7 deletions packages/docs/docs/350-examples.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# Examples

## Find all users with ids in the list
## Find all users with ids in the list

Finds all records in the `users` table where the `id` is in the list of ids.


```ts
const q = from('users')
.columns('id', 'name')
.where({ id: { in: ids } })
.many();

const result: UseQueryResult<Array<{ id: string; name: string }>> = useSynthql<
DB,
'users',
typeof q
>(q);
```
const result: UseQueryResult<
Array<{ id: string; name: string }>
> = useSynthql<DB, 'users', typeof q>(q);


```
5 changes: 4 additions & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@
"@docusaurus/module-type-aliases": "3.1.0",
"@docusaurus/tsconfig": "3.1.0",
"@docusaurus/types": "3.1.0",
"typescript": "^5.4.5"
"typescript": "^5.4.5",
"@synthql/backend": "*",
"@synthql/queries": "*",
"@synthql/react": "*"
},
"browserslist": {
"production": [
Expand Down
Loading

0 comments on commit 809a09f

Please sign in to comment.