Official node.js driver for OrientDB.
Questions tagged [oriento]
21 questions
3
votes
0 answers
Error (E_VALIDATION) :: 1 attribute is invalid
I'm trying to update one line using sails-orientdb, this way:
CommentModel.update({
_id: req.body.reply.commentId
}, comment).exec(function (err, reply) {
// *** LOG: LOOK BELOW
console.log(comment,…

John Aims
- 49
- 7
2
votes
1 answer
How to apply Distinct Query in OrientDB?
I want use Distinct Query in OrientDb. Any one have idea about that how to apply that but i want Distinct Query Builder.
Oriento Query
I know that : SELECT DISTINCT(name) FROM City
but I want something like that Query Builder :…

Gunjan Patel
- 2,342
- 4
- 24
- 45
1
vote
3 answers
How to insert a vertex with link type property with the orientjs query builder?
I am trying to insert a vertex with orientjs(previously oriento) query builder. My class has a link type property pointing to another class.
I know I can get it to work with a raw query string but I would love to use the query builder.
Here is what…

AlexB
- 3,518
- 4
- 29
- 46
1
vote
1 answer
Check if database with specified name exists or not
As you may know that whenever we set a new database inside "sails-orientdb adapter" configurations it creates database, now on the creation time of the database of course database will be created if there is no database inside orientdb with this…

Zeeshan
- 375
- 1
- 3
- 17
1
vote
1 answer
Oriento query builder like clause
I'm trying to get an autocomplete work with a oriento db interface.
The webserver is nodeJS with express framework and the server code is this:
express.get("/piatti", function(req, res) {
var tipo = req.query.tipo;
var nome =…

Mattiag
- 108
- 2
- 10
1
vote
2 answers
Why we use ORM or ODM to manage any graphDB?
Hey everyone I am working on nodeJS app. I searched some modules to manage my database (orientdb).
My question is: Why we use any ORM or ODM (or why is it recommenced), because there is a module which can provide many functions to manage DB.
I am…

9me
- 1,078
- 10
- 36
1
vote
1 answer
Koa: What is the most sensible way to connect to a database without an existing wrapper?
I am very new to node & koa, so please excuse my stupidity.
I am not sure if I mess something up. But I would like to use Koa together with OrientDB. I can connect to OrientDB using Oriento (the module for Node). And I would like to use the power of…

Ole Spaarmann
- 15,845
- 27
- 98
- 160
0
votes
1 answer
Why there is a part of the code who is not executed? Node.js/Oriento
I have call a function, function select(items ,className, callback) ,which have inside a console.log console.log("Function ran.") and the console.log is never made.
Here I called it:
io.on('connection', function(socket){
console.log('User…

Mike Szer
- 42
- 1
- 11
0
votes
0 answers
LiveQuery Not working working with Node.js and Oriento
I have made a LiveQuery and I don't understand why it doesn't responses when I insert something to the Class Buyers.
Here is my code:
function hearingQueries() {
server.liveQuery("LIVE SELECT FROM Buyers")
.on('live-insert', function(data)…

Mike Szer
- 42
- 1
- 11
0
votes
1 answer
How to update a specific record from a class using the query builder in Orientjs (previously called oriento)?
I need to update a specific record in my User class. I don't have any field with a unique index so I need to use the @rid field.
How can I use orientjs to update a specific record with dynamic properties ?
I would like to use the query builder if…

AlexB
- 3,518
- 4
- 29
- 46
0
votes
0 answers
How to call an OrientDB function through sails orientdb adapter?
How to run an OrientDB function through the sails-orientdb adapter ?
There is an extension to the waterline method with the signature
.runFunction('FunctionName', args...) but I cannot get it to work with my use case.
My OrientDB function…

AlexB
- 3,518
- 4
- 29
- 46
0
votes
0 answers
NodeJS: How to improve error handling when writing a model class for OrientDB
I am building a little Node app and since I want to use OrientDB I cannot use Mongoose or the like for handling my data / models. So I have to come up with something on my own and I find it quite hard since I'm not that well vetted in Node.js…

Ole Spaarmann
- 15,845
- 27
- 98
- 160
0
votes
1 answer
How to access results within batch statements in oriento
How do I access the newly inserted @rid in my second batch statement. I need to be able to access the @rid from the first statement.
var member = {
'email': 'test@test.com',
'id': 200,
'lastupdated': new Date()
};
db
.let('insert',…

Samuel Goldenbaum
- 18,391
- 17
- 66
- 104
0
votes
1 answer
Best practice for managing OrientDB connections in Express.js / Web Applications
What is the recommended way to manage OrientDB connections in Express.js or any web application for that matter? Connection per request? Would be using the oriento Node.js driver

Samuel Goldenbaum
- 18,391
- 17
- 66
- 104
0
votes
1 answer
How to create an index over an property which is a list of objects in OrientDB?
I'd like a class that stores a structure such as this:
{
name: "blabla",
metaData: [ {a: "mya"}, { a:"mya2"} ]
}
`
Now, I would like to have an index over the metaData[?].a fields.
What is the best way to represent this metaData in a…

Avi Tshuva
- 246
- 2
- 12