Tagged Questions
0
votes
1answer
57 views
Meteor Multiple Find Multiple
Developing a new app in Meteor, which I have little experience in. Just got handlebars/blaze figured out I think, now Mongo..
I have a database filled with records like this (3000+ atm, production ...
0
votes
1answer
52 views
print values of a nested array php
First let me say that I have gone through a lot of related question on here but none of them solve my issue. I have and php nested array in db and need to print the all the values. the output prints ...
0
votes
1answer
71 views
projections and index on 2D nested arrays in mongodb
> db.foo.save({'foo': [{f0: 'a', f1: 'b'}, {f0: 'c', f1: 'd'}]})
> db.foo.save({'foo': [{f0: 'a', f1: 'e'}, {f0: 'f', f1: 'g'}]})
> db.foo.save({'foo': [['a', 'b'], ['c', 'd']]})
> ...
1
vote
1answer
264 views
nested array inserting in mongodb?
I am using Meteor where I have a mongodb document where something inserted with the following code:
Poll_Coll.insert({question:quest,option1:[{pd:op1,ids:[]}],
option2:[{pd:op2,ids:[]}],
...
2
votes
1answer
692 views
MongoDB: Query nested arrays
I have been reading through old answers here to try to find a solution to this - but I haven't been successful.
I have a field in a document that has a nested array as follows:
[tags] => Array (
...
8
votes
1answer
4k views
Querying an array of arrays in MongoDB
Say, I have a document like this..
"ID" : "fruit1",
"Keys" : [["apple", "carrot", "banana]]
How do I query for Keys = "carrot". None of the following syntax works.
db.myColl.results.find({ "Keys" ...
1
vote
2answers
2k views
MongoDB: How to query nested arrays?
I’m trying to build a simple blog system in PHP with MongoDB just to give Mongo a try but I’ve ran into some difficulties querying it.
I’ve generated 2000 random posts where each blogpost document ...
1
vote
1answer
1k views
mongodb updating nested array in a document using PHP
document structure example is:
{
"dob": "12-13-2001",
"name": "Kam",
"visits": {
"0": {
"service_date": "12-5-2011",
"payment": "40",
"chk_number": "1234455",
...