http://learnmongodbthehardway.com/schema/schemabasics/ In the last paragraph of Embedding session, it says:
The third problem is exposed when one tries to perform pagination of the comments. There is no way to limit the comments returned from the Blog Post using normal finds so we will have to retrieve the whole blog document and filter the comments in our application.
But there is $slice for that: db.posts.find( {}, { comments: { $slice: [ 20, 10 ] } } )
. Am I wrong?
$findRes = $collection->find(
array('N_NAME'=>' عبدالوهاب علي سليمان')
);
I am trying to run this query to find Arabic records