Skip to content
Discussion options

You must be logged in to vote

Take a look at this query:

from index 'index' a
where 'RiderId' == 'users/a5s8elqetnqppahkgcqbyl'
select SeriesId,RiderId,RiderName,Date,Time,Points,Payout,Category,Division,Position,HorseName,JackpotNumber,JackpotName,JackpotId

Using this index:

map("JackpotResults", a => {
    var results = [];
    var categories = Object.keys(a.result);
    for (var i = 0; i < categories.length; i++) {
        var category = categories[i];
        var categoryData = a.result[category];
        var divisions = Object.keys(categoryData);
        for (var j = 0; j < divisions.length; j++) {
            var division = divisions[j];
            var runs = categoryData[division];
            for (var k = 0;…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@dbblackdiamond
Comment options

@ayende
Comment options

@dbblackdiamond
Comment options

@ayende
Comment options

Answer selected by dbblackdiamond
@ayende
Comment options

@dbblackdiamond
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants