Questions tagged as 'mongodb'

1
answer

How to do an update on Node.js and Mongoose

{ "_id": "58fe27e0e340671c9859c995", "__v": 0, "form": [ { "_id": "58fe2b1de437791cd02b9a8c", "sections": [ { "_id": "58fe2b1de437791cd02b9a8d", "input": {...
asked by 24.04.2017 / 19:04
1
answer

Hybrid deployments with PHP Laravel MySQL + MongoDB

I'm developing a system with PHP Laravel + MongoDB . The login part and password will be modeled using MySQL and I will use MongoDB to do a quiz . I was thinking of putting a Schema in% with% of this type:...
asked by 04.05.2017 / 22:51
1
answer

Quiz Database Schema for MongoDB

Users: [{ - email - senha - quiz_criado: [id: 1], // ref: Quiz (array com id) - quiz_respondido: [{ id: 1 , // ref: Quiz question_respondido: [{ question_id opcao_escolhida }]...
asked by 13.04.2017 / 17:58
1
answer

Sharding in MongoDB

Good afternoon, I'm thinking of implementing a cluster for sharding using MongoDB, I analyzed the options for shard key, and in my case the most recommendable would be to use the zones policy (tags). However I did not find any documentation sayi...
asked by 17.04.2017 / 20:07
1
answer

When I store the ID it disappears with some numbers

I was doing an application and in it I needed to store the id that is pretty big type This was my id 173782035419103232 but when I get to the database it changes to 173782035419103230 how can I do it so it does not round the number (Use the Mong...
asked by 15.04.2017 / 22:20
1
answer

Query return specific array of mongodb documents

I have the following document called "COURSE": { "_id" : ObjectId("58a300ff3de08a3cdce471be"), "nome" : "Matemática", "turma" : [ { "professor" : { "nome" : "Maria", "usuario...
asked by 10.03.2017 / 19:22
1
answer

MongoDB does not find any names

I'm pulling some data from MongoDB with CodeIgniter and I came across a strange thing ... Some records are found and some are not. Debugging the code I saw that the problem was the name it is looking for, but it seems to be because of some chara...
asked by 18.01.2017 / 03:26
1
answer

Set MONGO_URL on a Meteor project within the settings.json file

I'm starting to work with Meteor and I'm having a lot of trouble with something that should be simple: change the connection string with a mongodb own. I already searched the internet, also for the stackoverflow itself here / a>, here and...
asked by 23.12.2016 / 12:08
1
answer

Which PHP frameworks have the best support for working with NoSQL databases?

I would like to know which PHP frameworks have the best support for working with NoSQL databases? The NoSQL banks I already have experience are MongoDB, Redis and Cassandra, but I'm interested in testing other options like LevelDB MemCache an...
asked by 26.10.2016 / 19:07
0
answers

Document structure

Hello, I'm starting to learn MongoDB, and I have a question I did not find anywhere: Documents from the same collection may have different structure. Example: { "id": "1", "name": "John" }, { "id": "2", "name": "Mary", "...
asked by 25.10.2016 / 16:46