@cgarciagarcia/react-query-builder 1.5.0 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -5
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -43,10 +43,10 @@ console.log(theQuery.build());
|
|
|
43
43
|
// /users?filter[age]=18&sort=created_at,-age&includes=posts,comments
|
|
44
44
|
```
|
|
45
45
|
|
|
46
|
-
|
|
47
|
-
<h3 style="color:#cb3837">Remove Methods</h3>
|
|
46
|
+
<h3 style="color:#cb3837;">Remove Methods</h3>
|
|
48
47
|
You can use the remove method in sort, includes, filter like this:
|
|
49
|
-
|
|
48
|
+
|
|
49
|
+
```js
|
|
50
50
|
const builder = useQueryBuilder(baseConfig)
|
|
51
51
|
|
|
52
52
|
builder
|
|
@@ -55,10 +55,11 @@ const builder = useQueryBuilder(baseConfig)
|
|
|
55
55
|
.removeInclude('address', 'documents')
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
<h3 style="color:#cb3837">Clear Methods</h3>
|
|
58
|
+
<h3 style="color:#cb3837;">Clear Methods</h3>
|
|
59
59
|
|
|
60
60
|
You can use the clear methods for delete the entire data group
|
|
61
|
-
|
|
61
|
+
|
|
62
|
+
```js
|
|
62
63
|
const builder = useQueryBuilder(baseConfig)
|
|
63
64
|
|
|
64
65
|
builder
|