cursor.tryNext()중요
Mongo쉬 방법
This page documents a
mongoshmethod. This is not the documentation for a language-specific driver, such as Node.js.MongoDB API 드라이버의 경우 언어별 MongoDB 드라이버 설명서를 참조하세요.
반환합니다: db.collection.find()메서드 또는null에 의해 반환된 커서의 다음 문서입니다.
호환성
이 메서드는 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.
- MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud
참고
This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.
MongoDB Enterprise: MongoDB의 구독 기반 자체 관리 버전
MongoDB Community: MongoDB의 소스 사용 가능 무료 자체 관리 버전
행동
cursor.tryNext() 은(는) 사용 가능한 경우 반복(iteration)에서 다음 요소를 반환하는 cursor.next() 메서드의 특수한 경우이고, 그렇지 않으면 null 입니다.