Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsislima committed Mar 26, 2016
1 parent 0992099 commit 7441aa9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,17 @@ $data = array(

$query = AqlInsert::query('u', 'users', $data);

echo $mainQuery->get();
echo $query->get();

/* Generate this string:
INSERT {"name": "Paul", "age": 21} IN users
*/

//between collections
$mainQuery = AqlGen::query('u', 'users')
$query = AqlGen::query('u', 'users')
->insert('u', 'backup');

echo $mainQuery->get();
echo $query->get();

/* Generate this string:
FOR u IN users
Expand All @@ -211,7 +211,7 @@ $data = array(

$query = AqlUpdate::query('u', $data, 'users');

echo $mainQuery->get();
echo $query->get();

/* Generate this string:
UPDATE {"name": "Paul", "age": 21} IN users
Expand All @@ -222,11 +222,11 @@ $data = array(
'status' => "inactive"
);

$aql = AqlGen::query('u', 'users')
$query = AqlGen::query('u', 'users')
->filter('u.status == 0')
->update($data);

echo $mainQuery->get();
echo $query->get();

/* Generate this string:
FOR u IN users
Expand Down

0 comments on commit 7441aa9

Please sign in to comment.