Questions tagged [studio3t]

Use this tag for questions about Studio3T (formerly MongoChef) features and functionality.

Studio3T (formerly MongoChef) is a commercial IDE for MongoDB.

Related:

112 questions
1
vote
0 answers

How to write query NoSQL MongoDB in Studio 3T (robo 3T)?

I've never used Studio 3T application to access MongoDB NoSQL database. I'm not very familiar with this application. My question is, how do I write a query in the Studio 3T application to display some data, in case based on customer_id with a range…
1
vote
0 answers

MongoDB $geoIntersect query runs in Compass and Studio 3T, but not in Python - any ideas?

Here is the script which i have working inside MongoDBs Compass and working inside Studio 3T db.getCollection("collection").find({ geometry: { $geoIntersects: { $geometry: { type: "Polygon" , coordinates: [ […
Minty
  • 35
  • 1
  • 8
1
vote
0 answers

How to enable Duplicate Tab feature in Studio 3T

In Studio 3T Ultimate for MongoDB (2022.3.0), I follow a process similar to Robo 3T where I double click a collection which opens a tab with results for that collection. I then make changes to the query and load the results. In Robo 3T I could…
awgtek
  • 1,483
  • 16
  • 28
1
vote
3 answers

How to fill missing documents with values 0 in mongoDB?

I have a collection where I'm storing water dispensed for a particular day. Now for some days when the device isn't operated the data isn't stored in the database and I won't be getting the data in the collection. For example, I am querying water…
1
vote
1 answer

How can I gather all fields with their values except five of them and put them inside new field in the same collection with mongoDB

I have a collection that have many documents with too many fields but I want to gather many of these fields inside new field called Data, here is an example { "_id" : ObjectId("***********"), "name" : "1234567890", "mobile" :…
Sh.
  • 11
  • 2
1
vote
1 answer

Query calling array instead of type 'object'

I'm not sure why the following query has stopped working. Basically we have listener location and pastlistenerlocation and it seems our pastlistenerlocation does not want to update. BSON field 'update.updates.u' is the wrong type 'array', expected…
RussellHarrower
  • 6,470
  • 21
  • 102
  • 204
1
vote
0 answers

Mongo query: compare multiple of the same field (timestamps) to only show documents that have a few second difference

I am spinning my wheels on this. I am needing to find all documents within a collection that have a timestamp ("createdTs") that have a 3 second or less difference (to be clear: month/day/time/year all the same, save those few seconds). An example…
1
vote
1 answer

How do you query a Mongo db for rows containing a column with a specific type?

I have a collection that has ended up with a column containing an updated timestamp, sometimes as a text field, sometimes as a date field. I am looking for the syntax to execute a query to find all rows that contain that field as a date type.
DShultz
  • 4,381
  • 3
  • 30
  • 46
1
vote
1 answer

Get number of documents per field in MongoDB, like Studio3T Schema operation

How do I obtain the distribution of fields among a MongoDB collection, i.e the total count of documents for each field (without knowing the fields) ? E.g. considering these documents : { "doc": { "a": …, "b": … } } { "doc": { "a": …, "c": … } } {…
Skippy le Grand Gourou
  • 6,976
  • 4
  • 60
  • 76
1
vote
1 answer

Remove duplicate in nested group

I have to remove element that have same LocateId to parent element in nested array & object in JSON (I'm using MongoDB) : { "mainLocation": { "locateId": {"$numberInt": "111111"}, "LocateName": "Indonesia", …
Gunawan
  • 11
  • 2
1
vote
1 answer

Setting db in Studio3T intellishell

I am trying to execute a query in IntelliShell, However when I open intellishell for a particular collection and execute a simple find query I get the following error: Failed to retrieve documents [null.WidgetPublished@STAGE_QA sjc-wwdl-pmp2:27017…
Tejas Jaggi
  • 115
  • 1
  • 9
1
vote
1 answer

How do I auto insert a timestamp, into my document when a document is created / edited?

I'm just getting started with mongoDB, and coming from a MySQL environment I'm having trouble figuring out how have my documents automatically have fields such as UPDATED, CREATED, DELETED So when I create an entry like this: { "email":…
Amir
  • 4,211
  • 4
  • 23
  • 41
1
vote
1 answer

How to exclude a field that contains text, and return both null and does not exist?

I'm using Studio3T to run MongoDB, but I'm a beginner. I have a publication.notes field that I use to exclude items from a report, this field is normally not used otherwise so a majority of the documents do NOT have this field populated and we have…
gpace
  • 13
  • 2
1
vote
1 answer

Studio 3T - SQL - IN expression

Is it possible to use SQL IN expression in Studio 3T? I can't seem to get this working: select * from employees where job IN (select job from job where redundant=1 group by job) I get an error: Unable to execute SQL statement at cursor expected…
tonysepia
  • 3,340
  • 3
  • 27
  • 45
1
vote
1 answer

Querying an array using SQL in Studio 3T for MongoDB

Using Studio 3T's SQL functionaliy, how do you query into the elements of an array stored within a document?
Cade Bryant
  • 737
  • 2
  • 7
  • 19