ember-model-select
ember-model-select copied to clipboard
Change query parameters
Hi, is it possible to construct custom query parameters, because I have existing api which is little bit different. Or is there possibility for ember-model-select to call store.query('modelName", filterQuery), then I would be able to overwrite query method in adapter and change query parameters.
You can customize the names of the parameters with the searchKey and searchProperty attributes. Setting both will result in something like ?searchProperty[searchKey]=value
. You can also pass a query
argument, which should be an object merged with the rest of the request.
There's some existing issues which allow for some more freedom, but they have not been implemented yet:
- https://github.com/nickschot/ember-model-select/issues/80
- https://github.com/nickschot/ember-model-select/pull/81#issuecomment-638941981