title: How to call $resource query method with query string
body: <p>I have written:</p>
  
  <pre><code> $scope.myResource= $resource("rest/myResources/:id", {id:'@id'},
      {query: {method: 'GET', isArray: false , paramDefaults:{page: '1', sort:'name,desc'}}});
  </code></pre>
  
  <p>But when I call <code>$scope.myResource.query</code> angular sends <code>GET</code> request with URL <code>localhost:8080/myapp/rest/myResources</code> without any query string.</p>
  
  <p>All I need is to add <code>page</code> and <code>sort</code> parameters. How can I do that?</p>
  
  <p><strong>P.S.</strong> I have already tried to change <code>paramDefaults</code> to <code>params</code> it did not help</p>