You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`id` (_optional_) - The name of the id field property (usually set by default to `id` or `_id`).
42
-
-`events` (_optional_) - A list of [custom service events](../events.md#custom-events) sent by this service
43
42
-`paginate` (_optional_) - A [pagination object](#pagination) containing a `default` and `max` page size
44
-
-`allow` (_optional_) - A list of additional non-standard query parameters to allow (e.g `[ '$regex', '$populate' ]`)
45
43
-`multi` (_optional_, default: `false`) - Allow `create` with arrays and `patch` and `remove` with id `null` to change multiple items. Can be `true` for all methods or an array of allowed methods (e.g. `[ 'remove', 'create' ]`)
46
44
45
+
The following legacy options are still available but should be avoided:
46
+
47
+
-`events` (_optional_, **deprecated**) - A list of [custom service events](../events.md#custom-events) sent by this service. Use the `events` option when [registering the service with app.use](../application.md#usepath-service--options) instead.
48
+
-`operators` (_optional_, **deprecated**) - A list of additional non-standard query parameters to allow (e.g `[ '$regex' ]`). Not necessary when using a [query schema validator](../schema/validators.md#validatequery)
49
+
-`filters` (_optional_, **deprecated**) - A list of top level `$` query parameters to allow (e.g. `[ '$populate' ]`). Not necessary when using a [query schema validator](../schema/validators.md#validatequery)
50
+
47
51
## Pagination
48
52
49
53
When initializing an adapter you can set the following pagination options in the `paginate` object:
@@ -92,13 +96,17 @@ app.service('todos').find({
92
96
})
93
97
```
94
98
95
-
> **Note:** Disabling or changing the default pagination is not available in the client. Only `params.query` is passed to the server (also see a [workaround here](https://github.com/feathersjs/feathers/issues/382#issuecomment-238407741))
99
+
<BlockQuotetype="info"label="note">
100
+
101
+
Disabling or changing the default pagination is not available in the client. Only `params.query` is passed to the server (also see a [workaround here](https://github.com/feathersjs/feathers/issues/382#issuecomment-238407741))
102
+
103
+
</BlockQuote>
96
104
97
105
## Extending Adapters
98
106
99
-
There are two ways to extend existing database adapters. Either by extending the ES6 base class or by adding functionality through hooks.
107
+
There are two ways to extend existing database adapters. Either by extending the base class or by adding functionality through hooks.
100
108
101
-
### Classes (ES6)
109
+
### Classes
102
110
103
111
All modules also export an [ES6 class](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes) as `Service` that can be directly extended like this:
0 commit comments