Comments (2)
@dashersw I have a question regarding how to retrieve data types. From the screenshot you posted, I assume that we need BSON data types. mongoose
does not provide a way of accessing underlying BSON
data types. I also couldn't find a way to access these data types via the native driver. MongoDB has an extended JSON spec (https://github.com/mongodb/specifications/blob/master/source/extended-json.rst) but that seems to work more on the inserting or filtering part of queries, rather than evaluating a find query result. I've tried to use BSON parser (https://www.npmjs.com/package/bson#EJSON), which supports extended json deserialization but I couldn't get the underlying BSON
types from that either.
from mogollar.
Oh I wasn't worried about BSON data types — but for each property we print, we should check whether they are boolean
, string
, number
, Date
, ObjectId
, Array
or Object
. I found for object id's one can do record._id._bsontype
and it returns ObjectID
. For others, regular typeof checks (or Array.isArray
and so on) should be enough?
from mogollar.
Related Issues (17)
- Connections section should toggle
- Add an inline tab bar to the collection view for other mongodb operations
- Keyboard navigation in the results view
- Connection only happens on the second click on "Connect" HOT 7
- Design a logo HOT 4
- Add a welcome screen
- Sidebar should be resizable
- Create a Website for this Repo
- Newly created connections should be saved
- No background color in sidebar HOT 1
- Improving query input
- Refresh query on cmd+r
- Clicking on a collection on the sidebar should open a new tab pane
- Display total number of results for the query
- Add sort, fields, skip and limit inputs
- Display databases on the sidebar
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mogollar.