[Developers] How do you ask MQL to get a count of the number of available results?
Chris Eppstein
chris at eppsteins.net
Sun Jan 6 01:10:43 UTC 2008
Will that return the number returned or the total that exist when
using a limit query?
On Jan 5, 2008, at 2:57 PM, Will Moffat wrote:
> Hi Indy,
>
>> Hi, we're trying to ask freebase how many topics of a particular
>> type exist. Below is what we tried, but it doesn't work - is this
>> even available?
>
> The (undocumented) syntax is "return":"count"
>
> So this is what you're looking for:
> {
> "query" : [
> {
> "return" : "count",
> "type" : "/user/corallink/default_domain/underwater_location"
> }
> ]
> }
>
> regards,
> --Will
>
> _______________________________________________
> Developers mailing list
> Developers at freebase.com
> http://lists.freebase.com/mailman/listinfo/developers
More information about the Developers
mailing list