Object Document Mapper Is a programming technique for converting data between incompatible type systems in object-oriented programming languages. This creates, in effect, a "virtual object database" that can be used from within the programming language. There are both free and commercial packages available that perform object-relational mapping, although some programmers opt to create their own ODM tools.
Questions tagged [odm]
218 questions
1
vote
1 answer
Standalone Usage of Doctrine\ODM\MongoDB\Query\Builder
doeas anybody use the Query\Builder from Doctrine as Standalone Tool ?
It seems like The Query Manager needs a defined
Class of the requested Document in MongoDB.
If you have a defined Class like:

MadeOfSport
- 513
- 1
- 7
- 19
1
vote
1 answer
Python - Async Beanie ODM migrations doesn't work
I want to migrate from one Model to another model with extra field. I tried with both iterative and free fall - but none of those work. Whenever I run beanie migrate -uri -db -p --distance 1 …

Joel Raymann
- 21
- 5
1
vote
1 answer
I want to know this code base on ORM or ODM?
I want to ask you about this code is ORM base or ODM base?
I use Firebase (NoSQL)
Programming Language is Dart and Flutter.
Future _uploadFile(BuildContext context) async {
final firebaseStorageRef = FirebaseStorage.instance
.ref()
…

Yooni
- 41
- 5
1
vote
1 answer
What is "db" in Prisma datasource block?
In Prisma For MongogDB quick start guide, they wrote something like the following
datasource db {
provider = "mongodb"
url = env("DATABASE_URL")
}
My question is what is "db" right after "datasource" keyword?

Abir Sheikh
- 463
- 4
- 9
1
vote
0 answers
I can't get sfMondongoPlugin to generate embeddeds fields
I'm working with the sfMondongoPlugin v1.0 https://github.com/mondongo/sfMondongoPlugin
I can not get the embeds code to generate correctly. It generates embedded classes that inherit from the EmbeddedDocument class. (sounds correct)
But it…

Justin
- 4,203
- 7
- 41
- 58
1
vote
0 answers
Seeding MongoDB nodejs
Seeking for advice about a nodejs app and mongoDB seeding.
I have a nodejs app which it should be able to seed a mongodb once i export a variable DB_HOST which the correct IP.
I am able to go through all the steps and be able to ping my mongodb…

Nayden Van
- 1,133
- 1
- 23
- 70
1
vote
1 answer
What default value to be passed for boolean and string field to succeed the DB comparison when fields are None(mongoengine)
My query looks like:
employee = Partner_employees.objects()\
.filter(id=user_id) \
.filter(earnings__gte=preconditions.earnings.gte) \
.filter(earnings__lte=preconditions.earnings.lte) \
…

Sachin Tripathi
- 37
- 1
- 6
1
vote
3 answers
MongoDB ODM Aggregation builder(min, max) - skip 0
I have an Orders table:
{ "_id" : 1, "customer" : "1", price: 0 }
{ "_id" : 2, "customer" : "1", price: 100 }
{ "_id" : 3, "customer" : "1", price: 120 }
{ "_id" : 4, "customer" : "2", price: 150 }
I want to get the minimum order value for each…

Lyubomir Georgiev
- 21
- 1
- 5
1
vote
0 answers
IBM ODM - How Iterate over column rows (like in a given example)
How in IBM ODM to iterate through each row of decision table column and insert each value of row into method for calculations and finally check which values returned by method is the smallest.
For example:
1. Step
For every row of column Bn where…

NeoFar
- 77
- 1
- 12
1
vote
1 answer
MongoDB Morphia Compatibility Matrix
I have a project that whose mongo DB version is being migrated from 3.2 to 4.0.
As mongo DB doesn't allow an ecosystem to jump directly from 3.2 to 4.0, so we migrated like this:
3.2 -----> 3.4 -----> 3.6 -------> 4.0
We use morphia ODM in our code.…

Santanu
- 893
- 3
- 10
- 24
1
vote
2 answers
Mongoose ODM saves wrong model name in MongoDB collection
Hello Stackoverflowers!
I got a strange issue with Mongoose creating a collection named "Safes".
here is my example code:
const mongoose = require('mongoose')
mongoose.connect('mongodb://mongodb:27017/test', { useNewUrlParser: true })
const Safe =…

Jury Giannelli
- 23
- 6
1
vote
0 answers
Unique constraint on single field in Doctrine MongoDB ODM in Symfony4
I would like my email property to be UNIQUE in the collection User.
I tried many ways but I can still insert the same email.
Here my class :

tux23
- 215
- 4
- 11
1
vote
0 answers
Schema restriction for neo4j
I am new to neo4j, coming from NoSQL(MongoDB) background. In case of MongoDB, Mongoose is the Object Document Mapper (ODM) I used. It helped me to define the Schema. I am looking for something similar for neo4j.
I use Node.js backend to connect to…

PCP
- 79
- 1
- 5
1
vote
0 answers
ODM for Vue and Firebase/Firestore
As I'm coding a Vue app using Firestore, I'm feeling the need for an ODM in the vein of Mongoid.
I could see something like:
// src/store/models/todo.js
import Vue from 'vue';
import documentMixin from '../documentMixin';
import SubTask from…

btd
- 404
- 3
- 12