limit

limit specifies the maximum number of elements that will be returned.

limit is specified as a numeric integer value.

"limit": 100

Limit Examples

In this example, the images are sorted by year_captured and the top 100 are returned. Assuming there is 1 image per year since the year 1870:

[ {
    "FindImage": {
        "constraints" : {
            "year_captured": [ ">=", 1870 ]
        },
        "sort": "year_captured",
        "limit": 100,
        "results": {
            "list": ["year_captured"]
        }
    }
}]

# Response:

[ {
    "FindImage": {
        # the size of "entities" array will be equal of smaller
        # than limit value
        "entities": [
            {
                "year_captured": 1870
            },
            {
                "year_captured": 1871
            },
            ...
            {
                "year_captured": 1969
            }
        ]
    }
}]