mongo query null?error?
See original GitHub issue我使用mongo作为数据源,我使用的MongoDB jdbc连接器是
https://bitbucket.org/dbschema/mongodb-jdbc-driver/src/master/
配置MongoDB连接是成功的。在添加视图的时候,左侧只能查询到MongoDB的集合,查询不到其字段内容。当我在sql语句编辑器中写入db.xxx.find()
去执行时候显示执行成功,但是页面变空白。
请问我该如何使用MongoDB查询数据?
I use mongo as the data source, and the MongoDB jdbc connector I use is https://bitbucket.org/dbschema/mongodb-jdbc-driver/src/master/. The configuration of the MongoDB connection is successful. When adding a view, only the MongoDB collection can be queried on the left side. When I write db.xxx.find ()
in the sql statement editor to execute, it shows that the execution is successful, but the page becomes blank.
How do I query data using MongoDB?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Query for Null or Missing Fields — MongoDB Manual
The { item : null } query matches documents that either contain the item field whose value is null or that do not...
Read more >MongoDB: How to query for records where field is null or not ...
The { item : null } query matches documents that either contain the item field whose value is null or that do not...
Read more >mongo Query Error: Cannot convert undefined or null to object
mongo Query Error: Cannot convert undefined or null to object.
Read more >Mongodb Null or Empty – A Look at Some Edge Cases for ...
In this article we'll demonstrate a few queries that can help you filter out documents that either don't have a field, it's null,...
Read more >mongoc_collection_count_with_...
error : An optional location for a bson_error_t or NULL . ... This function shall execute a count query on the underlying 'collection'....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
1:如果需要显示字段,jdbc驱动需要实现DatabaseMetaData的getColumns方法,你可以看一下该驱动是否实现。
2:页面边白可以检查下后台日志是否有异常
1: If you need to display the field, the jdbc driver needs to implement the getColumns method of DatabaseMetaData, and you can see if the driver is implemented. 2: page becomes blank you can check the log for exceptions
you can use unityjdbc instead of that, the url is https://www.unityjdbc.com/