Player Game Stats Example

Use case - Retrieve Tom Brady Stats Game Stats for 2014 Regular season week4 Game.

Field Selector:

{
    id,
    firstName,
    lastName,
    playerStats{gameStats{passingStats{attempts,completions},rushingStats{rushingAttempts,yardsPerAttempt}}}

}

Query:

{
    "$query":
        {
            "firstName" : "Tom",
            "lastName" : "Brady",
        },
    "$playerStats" : {
        "$gameStats" : {
            "$query" : {
                "game.week" : 4,
                "game.season" : 2014,
                "game.seasonType" : "REG"
            }
        }
    }
}

Request:

GET  /persons?fs={id,firstName,lastName,playerStats{gameStats{passingStats{attempts,completions},rushingStats{rushingAttempts,yardsPerAttempt}}}}&s={
    "$query":{"firstName" : "Tom","lastName" : "Brady",},"$playerStats" : {"$gameStats" : {"$query" : {"game.week" : 4,"game.season" : 2014,"game.seasonType" : "REG"}}}}

Response:

``` { "pager" : {}, "data" : [ { "id": "525f365e-77fa-4e93-8413-f69705b19ade", "firstName": "Tom", "lastName" : "Brady", "playerStats": { "gameStats" : [ { "passingStats": { "attempts": 50, "completions": 37 }, "rushingStats": { "rushingAttempts": 0, "yardsPerAttempt": 0 } } ] } } ] }