Hi all,

I'm working with *oriento *(Node.js driver) to write requests like this 
batch :

db
* //Create the first Vertex*
.let('firstVertex', function(s){
s
.create('vertex', 'MyFirstVertexClass')
})
* //Get the second Vertex*
.let('secondVertex', function(s){
s
.select()
.from('MySecondVertexClass')
.where({
uuid : '1234-5678-1234'
})
})
* //Connect first Vertex -> second Vertex : IS_LINKED_TO*
.let('isLinkedToEdge', function(s){
s
.create('edge', 'IS_LINKED_TO')
.from('$firstVertex')
.to('$secondVertex')
})
.commit()
.all()
.then(function(result){
* //The code is operation OK*
})
.catch(function(err){
* //The code is operation KO*
})
.done();

Inside this batch, I would like to throw an exception if no record is 
returned for $secondVertex.

Do you know any way to do that ?

Thanks a lot.







-- 

--- 
You received this message because you are subscribed to the Google Groups 
"OrientDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to