Skip to content

Update README.md #1235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 4, 2017
Merged

Update README.md #1235

merged 2 commits into from
Jul 4, 2017

Conversation

daiduong47
Copy link
Contributor

Change
DB::collection('items')->project(['tags' => array('$slice' => 1]))->get();
To
DB::collection('items')->project(['tags' => array('$slice' => 1)])->get();

Change
DB::collection('items')->project(['tags' => array('$slice' => 1]))->get();
To
DB::collection('items')->project(['tags' => array('$slice' => 1)])->get();
@jenssegers
Copy link
Contributor

Could you change it to short array notation?

Update more guide for $slide and $skip
@daiduong47
Copy link
Contributor Author

Yes, I've changed it. I also add more guide for $slide with a range in a Projections.
Thank you.

@jenssegers jenssegers merged commit c4a5264 into mongodb:master Jul 4, 2017
mnphpexpert added a commit to mnphpexpert/laravel-mongodb that referenced this pull request Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants