We’ve also added Query Code to SQL Query, the handy feature that lets you use SQL to query MongoDB; and Aggregation Editor, the convenient feature that breaks down aggregation queries into stages. Now you can translate not just MongoDB queries, but also SQL and aggregation queries to all five languages.
Download Studio 3T now if you still haven’t done so, and let’s begin.
Visual Query Builder
- Simply query as you normally would using Visual Query Builder and check that it gives you the desired results. (Hint: With Release 5.4.0, you can now even drag multiple fields at once!)
- This time, you’ll notice one very simple (but powerful) tab: Query Code. Click on it.
- Click Copy code to clipboard.Once that’s done, paste it into your application – and done! You can of course tweak the code as you like, but Studio 3T’ll take care of the hard work for you from now on.
Same as with the Visual Query Builder, start SQL Query as you normally would and write your SQL query.
Click on the Query Code tab and follow the same steps as above.
Build your MongoDB aggregation query stage by stage. Once done, execute the full pipeline and find the equivalent code under the Query Code tab.
We hope you enjoy using Query Code, our new feature that lets you automatically generate driver code in four easy steps within our app.
As always, please feel free to drop us a line; we’d love to hear your thoughts.
Happy querying 🙂