Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change query parameters #90

Open
candunaj opened this issue Sep 9, 2020 · 1 comment
Open

Change query parameters #90

candunaj opened this issue Sep 9, 2020 · 1 comment

Comments

@candunaj
Copy link

candunaj commented Sep 9, 2020

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.

@nickschot
Copy link
Owner

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants