Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

View JSON response "total_rows" value. #170

Closed
markst opened this Issue · 3 comments

4 participants

@markst

When querying a view from Curl the response contains a "total_rows" key with how many results there are.
Performing a query in Cradle only returns the rows value.

@ravelab

you can do cradle.setup({raw: true}) to get unprocessed data

@freeformsystems

I think this should be included in the output without converting everything to raw output. Think of view pagination when you want to show something like 1-10/2000 for example.

I really like cradle but this sort of processing/conversion overkill just seems plain wrong.

@indexzero
Owner

@freeformsystems That's fine, you can opt out of it:

  require('cradle').setup({ raw: true });
@indexzero indexzero closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.