We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 31fffa1 commit 985efbdCopy full SHA for 985efbd
README.md
@@ -517,6 +517,34 @@ let post = await Post
517
.get()
518
```
519
520
+# Custom params
521
+
522
+If you need to pass any extra param not provided by `vue-api-query` pattern, just use the `params()` method while querying:
523
524
+```js
525
+// GET /users?doSomething=yes&process=no
526
527
+let users = await User
528
+ .params({
529
+ doSomething: 'yes',
530
+ process: 'no'
531
+ })
532
+ .get()
533
+```
534
535
+Of course you can chain it with other methods, including on relationships.
536
537
538
+// GET /posts/1/comments?include=user&blah=123
539
540
+let comments = await post
541
+ .comments()
542
+ .include('user')
543
+ .params({blah: 123})
544
545
546
547
548
549
# Response from backend
550
0 commit comments