File tree Expand file tree Collapse file tree 9 files changed +781
-60
lines changed Expand file tree Collapse file tree 9 files changed +781
-60
lines changed Original file line number Diff line number Diff line change 1+ ## Checklist
2+
3+ - [ ] Tests
4+ - [ ] Docs
5+ - [ ] Type definitions
Original file line number Diff line number Diff 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
116116These are model-related options.
Original file line number Diff line number Diff 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
227227await 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
257257await Model .$get ()
Original file line number Diff line number Diff line change @@ -3,5 +3,16 @@ import theme from "@nuxt/content-theme-docs";
33export 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} )
Original file line number Diff line number Diff line change @@ -5094,9 +5094,9 @@ inherits@2.0.3:
50945094 integrity sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=
50955095
50965096ini@^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
51015101inline-style-parser@0.1.1 :
51025102 version "0.1.1"
You can’t perform that action at this time.
0 commit comments