{"action":"created","issue":{"url":"https://api.github.com/repos/appbaseio/reactivesearch/issues/715","repository_url":"https://api.github.com/repos/appbaseio/reactivesearch","labels_url":"https://api.github.com/repos/appbaseio/reactivesearch/issues/715/labels{/name}","comments_url":"https://api.github.com/repos/appbaseio/reactivesearch/issues/715/comments","events_url":"https://api.github.com/repos/appbaseio/reactivesearch/issues/715/events","html_url":"https://github.com/appbaseio/reactivesearch/issues/715","id":392989948,"node_id":"MDU6SXNzdWUzOTI5ODk5NDg=","number":715,"title":"[Support] CustomQuery use","user":{"login":"mauxtin","id":40521145,"node_id":"MDQ6VXNlcjQwNTIxMTQ1","avatar_url":"https://avatars1.githubusercontent.com/u/40521145?v=4","gravatar_id":"","url":"https://api.github.com/users/mauxtin","html_url":"https://github.com/mauxtin","followers_url":"https://api.github.com/users/mauxtin/followers","following_url":"https://api.github.com/users/mauxtin/following{/other_user}","gists_url":"https://api.github.com/users/mauxtin/gists{/gist_id}","starred_url":"https://api.github.com/users/mauxtin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauxtin/subscriptions","organizations_url":"https://api.github.com/users/mauxtin/orgs","repos_url":"https://api.github.com/users/mauxtin/repos","events_url":"https://api.github.com/users/mauxtin/events{/privacy}","received_events_url":"https://api.github.com/users/mauxtin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-12-20T10:50:00Z","updated_at":"2018-12-20T22:45:23Z","closed_at":null,"author_association":"NONE","body":"This is not an issue but I found other people having the [same](https://stackoverflow.com/questions/53818777/how-to-filter-initial-response-in-reactivesearch) [question](https://stackoverflow.com/questions/53842011/reactivesearch-customquery) so I thought it would be a good idea to post it here as well. (Feel free to close this.)\r\n\r\nI am looking for a way to add a predefined selected value when the page loads.\r\n\r\nSpecifically on page load I am looking for a way to only show cars of a particular manufacturer.\r\n\r\ne.g. when the url is /manufacturers/bmw (id: 1) I need to add customQuery with that value.\r\n\r\nThis is what I tried but it doesn't seem to have any effect. (I still see unfiltered items)\r\n\r\n```\r\n<ReactiveBase\r\n...\r\n  >\r\n    <ReactiveList\r\n      ...\r\n      :react=\"{and: ['colors', 'manufacturers']}\"\r\n      component-id=\"SearchResult\"\r\n      data-field=\"id\"\r\n      :custom-query=\"\r\n        () => {\r\n          return {\r\n            'match': { 'manufacturer_id': 1 }\r\n          }\r\n      }\"\r\n    >\r\n    </ReactiveList>\r\n</ReactiveBase>\r\n```\r\n\r\nNote that this must be a global thing since filters should also respect the same query.\r\n\r\nAlso, the network request **does not** include the query I entered so this is possibly a bug in the vue package? Or am I doing something wrong?"},"comment":{"url":"https://api.github.com/repos/appbaseio/reactivesearch/issues/comments/449160029","html_url":"https://github.com/appbaseio/reactivesearch/issues/715#issuecomment-449160029","issue_url":"https://api.github.com/repos/appbaseio/reactivesearch/issues/715","id":449160029,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTE2MDAyOQ==","user":{"login":"mauxtin","id":40521145,"node_id":"MDQ6VXNlcjQwNTIxMTQ1","avatar_url":"https://avatars1.githubusercontent.com/u/40521145?v=4","gravatar_id":"","url":"https://api.github.com/users/mauxtin","html_url":"https://github.com/mauxtin","followers_url":"https://api.github.com/users/mauxtin/followers","following_url":"https://api.github.com/users/mauxtin/following{/other_user}","gists_url":"https://api.github.com/users/mauxtin/gists{/gist_id}","starred_url":"https://api.github.com/users/mauxtin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mauxtin/subscriptions","organizations_url":"https://api.github.com/users/mauxtin/orgs","repos_url":"https://api.github.com/users/mauxtin/repos","events_url":"https://api.github.com/users/mauxtin/events{/privacy}","received_events_url":"https://api.github.com/users/mauxtin/received_events","type":"User","site_admin":false},"created_at":"2018-12-20T22:45:23Z","updated_at":"2018-12-20T22:45:23Z","author_association":"NONE","body":"Thanks @bietkul! 👍 This seems to work for my use case even if it's a bit hackish. \r\n\r\n(Not sure if you want to close this or leave it open until a less-hackish way is found :) - Feel free to close it.)"}}
{"actor":{"display_login":"mauxtin"}}