B;
use Mojo::Base -base;
use Mojo::URL;
use Mojo::UserAgent;
use Mojo::IOLoop;
use Mojo::JSON qw(encode_json);
use Carp qw(croak carp);
use URI;
use Scalar::Util qw(reftype);
use Storable qw(dc
lt->json;
}
sub all_docs_p {
my $self = shift;
my $query = $self->_to_query(shift);
return $self->_call_p('_all_docs' . $query, 'get_p')
->then(sub { return shift->res->json });
return $self->_find($sc)->_call_p('_find', 'post_p', $sc)
->then(sub { return shift->res->json });
}
sub get {
my $self = shift;
my $id = shift;
$id = $$id while (reftype($id))