зеркало из
				https://github.com/iharh/notes.git
				synced 2025-10-31 13:46:08 +02:00 
			
		
		
		
	
		
			
				
	
	
		
			18 строки
		
	
	
		
			491 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			18 строки
		
	
	
		
			491 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| coll
 | |
|     .find({"field1": "v1", ...}, {f1: 1, f2: 0}) // 2-nd - projection
 | |
|         .pretty()
 | |
|         .sort({keyfield: 1/-1, ...})
 | |
|             https://www.studytonight.com/mongodb/sorting-in-mongodb
 | |
|         skip(N).limit(M)
 | |
|         https://www.tutorialsteacher.com/mongodb/cursor
 | |
|         !!! cursor
 | |
| 
 | |
| 
 | |
| operators
 | |
|     {$gt: 75}
 | |
|     { $gte: new ISODate( "2020-01-30" ), $lt: new ISODate( "2022-01-30" ) }
 | |
|     field: {"$exists": false}
 | |
| 
 | |
| ???
 | |
|  cur = db.world.find();x=cur.next();print(x["speech"]);
 | 
