Skip to content

fix(yarn): Updated lock for v1.15.1 #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 13, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions docs/content/en/api/query-builder-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,9 @@ await Model.$find(1)
They handle and unwrap responses within "data".</alert>

## `file`

<alert type="success">Available in version >= v1.15.0</alert>

- Returns: `Binary`

Execute the query with $http.responseType as `blob` and returns a binary
Expand All @@ -374,10 +377,10 @@ Execute the query with $http.responseType as `blob` and returns a binary
const data = await Model.file()

// force file download
const url = window.URL.createObjectURL(new Blob([data]));
const link = document.createElement('a');
link.href = url;
link.setAttribute('download', 'model.xlsx'); //or any other extension
document.body.appendChild(link);
link.click();
```
const url = window.URL.createObjectURL(new Blob([data]))
const link = document.createElement('a')
link.href = url
link.setAttribute('download', 'model.xlsx') //or any other extension
document.body.appendChild(link)
link.click()
```
Loading
Loading