Skip to content

Commit

Permalink
Merge pull request #171 from robsontenorio/dev
Browse files Browse the repository at this point in the history
Release v1.9.0
  • Loading branch information
JoaoPedroAS51 authored Jan 17, 2021
2 parents 42de647 + c4644c2 commit 53d0768
Show file tree
Hide file tree
Showing 9 changed files with 781 additions and 60 deletions.
5 changes: 5 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## Checklist

- [ ] Tests
- [ ] Docs
- [ ] Type definitions
36 changes: 18 additions & 18 deletions docs/content/en/api/model-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,24 +65,6 @@ parameterNames() {
}
```

### `formData`
- Returns: `object`

This method can be overridden in the model to configure `object-to-formdata`.

See [object-to-formdata](https://github.com/therealparmesh/object-to-formdata#usage)

```js
formData() {
return {
indices: false,
nullsAsUndefineds: false,
booleansAsIntegers: false,
allowEmptyArrays: false,
}
}
```

#### `include`
- Default: `include`
- Returns: `string`
Expand Down Expand Up @@ -111,6 +93,24 @@ formData() {
- Default: `limit`
- Returns: `string`

### `formData`
- Returns: `object`

This method can be overridden in the model to configure `object-to-formdata`.

See [object-to-formdata](https://github.com/therealparmesh/object-to-formdata#usage)

```js
formData() {
return {
indices: false,
nullsAsUndefineds: false,
booleansAsIntegers: false,
allowEmptyArrays: false,
}
}
```

## Model Options

These are model-related options.
Expand Down
4 changes: 2 additions & 2 deletions docs/content/en/api/query-builder-methods.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ await Model.config({
## `get`
- Returns: `Collection | { data: Collection }`

Execute the query as a "select" statement.
Execute the query and get all results.

```js
await Model.get()
Expand Down Expand Up @@ -251,7 +251,7 @@ await Model.find(1)
## `$get`
- Returns: `Collection`

Execute the query as a "select" statement.
Execute the query and get all results.

```js
await Model.$get()
Expand Down
11 changes: 11 additions & 0 deletions docs/nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,16 @@ import theme from "@nuxt/content-theme-docs";
export default theme({
router: {
base: '/vue-api-query/'
},
/**
* Workaround to fix router base issue.
*
* See https://github.com/robsontenorio/vue-api-query/issues/165
* See https://github.com/nuxt/content/issues/376#issuecomment-702193217
*/
hooks: {
'vue-renderer:ssr:templateParams': function(params) {
params.HEAD = params.HEAD.replace('<base href="/vue-api-query/">', '')
}
}
})
6 changes: 3 additions & 3 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5094,9 +5094,9 @@ [email protected]:
integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=

ini@^1.3.5:
version "1.3.5"
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.5.tgz#eee25f56db1c9ec6085e0c22778083f596abf927"
integrity sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==
version "1.3.8"
resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c"
integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==

[email protected]:
version "0.1.1"
Expand Down
Loading

0 comments on commit 53d0768

Please sign in to comment.