Skip to content
This repository has been archived by the owner on Dec 22, 2021. It is now read-only.

Commit

Permalink
Fix indexes examples
Browse files Browse the repository at this point in the history
  • Loading branch information
akreal committed May 10, 2016
1 parent 066ec17 commit 05dcbba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MongoDB/Examples.pod
Expand Up @@ -90,12 +90,12 @@ you see below.

=item C<CREATE INDEX myindexname ON users(name)>

my $indexes = $db->get_collection( 'users' );
my $indexes = $db->get_collection( 'users' )->indexes;
$indexes->create_one( [ name => 1 ] );

=item C<CREATE INDEX myindexname ON users(name,ts DESC)>

my $indexes = $db->get_collection( 'users' );
my $indexes = $db->get_collection( 'users' )->indexes;
$indexes->create_one( [ name => 1, ts => -1 ] );

=item C<SELECT * FROM users WHERE a=1 and b='q'>
Expand Down

0 comments on commit 05dcbba

Please sign in to comment.