I'd like to use my custom commands defined in a mongorc.js in MongoDB Compass. Is this possible?
Is it possible to use a mongorc.js in MongoDB Compass?
Compass does not support the mongo shell's notion of a mongorc.js startup file. The mongo shell is a lower level JavaScript console environment that provides some basic scripting capabilities for administrators; Compass is a desktop application which does not allow arbitrary execution of user-provided JavaScript.
However, if you want to customise Compass it is possible to Create Compass Plugins which are implemented as ReactJS modules. Compass plugins extend predefined roles in the Compass UI (such as the global header, database-level tabs, or collection-level tabs) and run in a much more limited security context as compared to the mongo shell.
Implementing a plugin is definitely more involved than a simple JavaScript include, but there are interesting possibilities if you want to tweak your admin UI (and perhaps share plugins with others).
For more information see: Plugin Tutorials and Compass Plugin Reference.
Related
I want to create a Flutter mobile application and I want to use MongoDB Atlas as a database. Is there a Flutter package available that can help me with that?
If not, is there any other way I can connect Flutter to a MongoDB Atlas Database? If there isn't, what other options do you suggest?
Thank you in advance.
you can use the package mongo_dart, here is the catch in the database URL give URL to your MongoDB atlas database and you will be able to perform all the crud operations as usual. The documentation is pretty well written so you wouldn't have to face any pro
As #JideGuru said, what you'll want is some form of API that you can then make requests to from your app.
i.e. Instead of accessing your DB directly, you'd do something in Flutter like http.get("yourserveraddress.com/getSomethingWithThisNumber/1") using the HTTP package.
I'd recommend looking at something like Node.JS (https://nodejs.org/), which is a runtime for Javascript that allows it to be ran on servers. I'm just getting started with it and for basic CRUD (Create, read, update, delete) operations on my SQL database its been perfect. I'm not a JS developer by any stretch, but it is easy enough to pick up.
You really should never have your database being directly accessed by a client, as that means leaving it exposed on the internet!
MongoDB have their own driver for NodeJS, I've used it with atlas and it seems solid.
(https://mongodb.github.io/node-mongodb-native/)
Hope this helps!
My company runs a huge Lumen 5.1 project on MySQL. They want to add to it analytics, and they that part to use MongoDB
Is it possible to use MongoDB without any third party libraries? I one going to use
https://github.com/jenssegers/laravel-mongodb
But the tech lead thinks Laravel support MongoDB by default, I'm just asking this question to check whether that's true or not.
Edit:
If MongoDB isn't an option, does Laravel support any other NoSQL by default?
Laravel does not support MongoDB by default.
You would need to use one of several available third-party packages. I like moloquent because it maps mongo db collections to laravel models just like eloquent.
You can use Redis if you need a natively supported NoSQL db or could consider ElasticSearch (not supported natively) if you are going to store a lot of meta data and then analyse it. Tools like kibana and logstash might get very helpful.
This is a general question and what i'm looking for here is a link to some resource.
Explanation:
I recently figured out how to run a mongo shell script (refer to this post: can't make basic mongo shell script with authentication) and in doing this i realized that the javascript methods available via the mongo shell are not the same as the ones i use in the browser. So my question is, where can i find a list of all available methods?
Please also note that i have already looked here: http://docs.mongodb.org/manual/reference/method/ While this is useful it is clearly not a complete list because it doesn't include the core javascript functionality such as for loops and methods like printjson().
The mongo shell is built on the JavaScript V8 engine so all basic JavaScript functionality available in Node.js is available in the Mongo shell (mongo university M101JS, week 1, lecture 8: Introduction to the Mongo Shell).
You've found the core functionality document which is fairly complete but does not explain how to use things like the admin commands. You can find a list of those here: http://docs.mongodb.org/master/reference/command/nav-administration/
I've recently came across a need to store a higher amount of files in my application and because PaaS platform used to host the application provides mongo, I've would like to use it.
However because I'm quite inexperienced with mongo I have almost no idea what is the current state of mongo related plugins and tools for grails. What should I use? As I want to keep domain classes in SQL database and use mongo only to store related files (in this case it will be mostly a bunch of PDFs and text documents related to domain instance) the mongoDB ORM [1] plugin seems too "heavy". Unfortunately mongoDB ORM is probably the only mongo plugin for grails in active development at the moment.
In short, what would be the best plugin / library tool-set for this purpose? The closest thing that matches my need I've found is grails-mongo-files plugin [2], which is probably a little bit outdated with no further development.So far it seems that I will have to use mongo's java driver (or the gmongo wrapper) and write some storage service and taglib by myself (what is not necessary a bad thing).
[1] http://grails.org/plugin/mongodb
[2] https://github.com/quirklabs/grails-mongo-file
There is also the mongodb gridfs plugin. http://grails.org/plugin/mongodb-gridfs
One thing to consider is that gridfs effectively does two calls to mongo, one to retrieve file information and one to retrieve the file. So it might not be a good fit if your files are under 16 megabytes.
Here is a post on how to do this manually if you want to bypass plugins - http://jameswilliams.be/blog/entry/171
Are there any good applications that people use with the MongoDB database to make it easier? I'm using MongoVUE for looking at the data and querying data. Are there any other apps that I should know about? I'm thinking of using MongoDB from now on.
There's a MongoDB Admin UIs list you might find useful.
PHP Rock Monogo is an awesome web interface for querying that you should try out.
Download rockmongo-on-windows-v0.0.2.rar from http://code.google.com/p/rock-php/downloads/list, unzip the file and run rockstart.bat. Then, login as admin/admin in to the web interface.