从Schema

时间:2018-01-25 14:36:01

标签: mongodb mongodb-query mongodb-compass

我希望能够从指南针编辑Mongo数据库中的某些文档,但查询只显示20个最新结果。我如何查看超过20?或者至少查看下一个20?

1 个答案:

答案 0 :(得分:2)

来自the docs ...

  

您可以在查询栏中指定查询过滤器。如果单击“选项”以展开查询栏,则还可以访问项目,排序,跳过和限制查询选项。

enter image description here

因此,如果您点击<properties> <provided.scope>provided</provided.scope> <hdp.version>2.6.3.0-235</hdp.version> <spark-excel.version>0.9.8</spark-excel.version> <spark.version>2.2.0.2.6.3.0-235</spark.version> <kafka.version>0.10.1.2.6.3.0-235</kafka.version> </properties> <repositories> <repository> <releases> <enabled>true</enabled> <updatePolicy>always</updatePolicy> <checksumPolicy>warn</checksumPolicy> </releases> <snapshots> <enabled>false</enabled> <updatePolicy>never</updatePolicy> <checksumPolicy>fail</checksumPolicy> </snapshots> <id>HDPReleases</id> <name>HDP Releases</name> <url>http://repo.hortonworks.com/content/repositories/releases/</url> <layout>default</layout> </repository> </repositories> <dependencies> <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-core --> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-core_2.11</artifactId> <version>${spark.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-sql --> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql_2.11</artifactId> <version>${spark.version}</version> </dependency> <dependency> <groupId>com.crealytics</groupId> <artifactId>spark-excel_2.11</artifactId> <version>${spark-excel.version}</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-sql-kafka-0-10 --> <dependency> <groupId>org.apache.spark</groupId> <artifactId>spark-sql-kafka-0-10_2.11</artifactId> <version>${spark.version}</version> </dependency> </dependencies> ,您可以:

  • Options的值从默认值Limit更改为您选择的值
  • ,即可获得超过20个文档
  • 通过更改20
  • 的值来获取下一个 N 文档