ngresource not filtering properly with oData based Rest Controller
<p>i have a web api based controller using MongoDb at back end. </p>

<pre><code>    public class NodesRestController : ApiController
{
    private INodeService _nodeService;
    public NodesRestController(INodeService nodeService)
    {
        _nodeService = nodeService;
    }
    [EnableQuery()]
    public IQueryable&lt;Node&gt; Get()
    {
        return _nodeService.GetAllNodes().AsQueryable();
    }
    [EnableQuery()]
    public Node Get(Guid id)
    {
        return _nodeService.GetNodeById(id);
    }
}
</code></pre>

<p>in an angular application my resource looks like </p>

<pre><code>(function() {
'use strict';
var nodeServiceRoot = '/api/NodesRest/:id';

angular.module('common.service')
    .factory("nodeResource", ["$resource", "appSettings", nodeResource])

function nodeResource($resource, appSettings) {
    return $resource(appSettings.serverPath + nodeServiceRoot, {
        id: '@id'
    }, {
        "update": {
            method: "PUT"
        }
    });
}}());
</code></pre>

<p>Nodes Collection looks like multiple instances such below.</p>

<pre><code>{
"_id" : LUUID("982d248a-ef2a-f94c-be93-96ff67ca1d3f"),
"Name" : "RTR1",
"IP" : "1.2.221.121",
"NodeGroup" : {
    "_id" : LUUID("36a38db3-830c-4a45-8b9c-63b16394f985"),
    "Name" : "Group One"
}}
</code></pre>

<p>i am trying to get all  the nodes where NodeGroup.Name = "Group One" but i get all the nodes back.</p>

<pre><code> var nodesInNodeGroup = nodeResource.query({ 'NodeGroup/Name': vm.CurrJob.NodeGroup.Name});
        nodesInNodeGroup.$promise.then(function (response) {
            nodesInNodeGroup = response;
        });
</code></pre>

<p>vm.CurrJob.NodeGroup.Name = 'Group One'</p>

<p>kindy help. </p>