Skip to content

Commit 53d0768

Browse files
Merge pull request #171 from robsontenorio/dev
Release v1.9.0
2 parents 42de647 + c4644c2 commit 53d0768

9 files changed

+781
-60
lines changed

.github/pull_request_template.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Checklist
2+
3+
- [ ] Tests
4+
- [ ] Docs
5+
- [ ] Type definitions

docs/content/en/api/model-options.md

+18-18
Original file line numberDiff line numberDiff line change
@@ -65,24 +65,6 @@ parameterNames() {
6565
}
6666
```
6767

68-
### `formData`
69-
- Returns: `object`
70-
71-
This method can be overridden in the model to configure `object-to-formdata`.
72-
73-
See [object-to-formdata](https://github.com/therealparmesh/object-to-formdata#usage)
74-
75-
```js
76-
formData() {
77-
return {
78-
indices: false,
79-
nullsAsUndefineds: false,
80-
booleansAsIntegers: false,
81-
allowEmptyArrays: false,
82-
}
83-
}
84-
```
85-
8668
#### `include`
8769
- Default: `include`
8870
- Returns: `string`
@@ -111,6 +93,24 @@ formData() {
11193
- Default: `limit`
11294
- Returns: `string`
11395

96+
### `formData`
97+
- Returns: `object`
98+
99+
This method can be overridden in the model to configure `object-to-formdata`.
100+
101+
See [object-to-formdata](https://github.com/therealparmesh/object-to-formdata#usage)
102+
103+
```js
104+
formData() {
105+
return {
106+
indices: false,
107+
nullsAsUndefineds: false,
108+
booleansAsIntegers: false,
109+
allowEmptyArrays: false,
110+
}
111+
}
112+
```
113+
114114
## Model Options
115115

116116
These are model-related options.

docs/content/en/api/query-builder-methods.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ await Model.config({
221221
## `get`
222222
- Returns: `Collection | { data: Collection }`
223223

224-
Execute the query as a "select" statement.
224+
Execute the query and get all results.
225225

226226
```js
227227
await Model.get()
@@ -251,7 +251,7 @@ await Model.find(1)
251251
## `$get`
252252
- Returns: `Collection`
253253

254-
Execute the query as a "select" statement.
254+
Execute the query and get all results.
255255

256256
```js
257257
await Model.$get()

docs/nuxt.config.js

+11
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,16 @@ import theme from "@nuxt/content-theme-docs";
33
export default theme({
44
router: {
55
base: '/vue-api-query/'
6+
},
7+
/**
8+
* Workaround to fix router base issue.
9+
*
10+
* See https://github.com/robsontenorio/vue-api-query/issues/165
11+
* See https://github.com/nuxt/content/issues/376#issuecomment-702193217
12+
*/
13+
hooks: {
14+
'vue-renderer:ssr:templateParams': function(params) {
15+
params.HEAD = params.HEAD.replace('<base href="/vue-api-query/">', '')
16+
}
617
}
718
})

docs/yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -5094,9 +5094,9 @@ [email protected]:
50945094
integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
50955095

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

51015101
51025102
version "0.1.1"

0 commit comments

Comments
 (0)