question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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?

image image

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
xxxllluuucommented, Feb 19, 2020

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

0reactions
RickyLoveFreedomcommented, Jun 10, 2020

you can use unityjdbc instead of that, the url is https://www.unityjdbc.com/

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found