orientechnologies / orientjs

The official fast, lightweight node.js client for OrientDB
http://orientdb.com
Other
327 stars 67 forks source link

Unable to create function using createFn on OrientDB 3.2.13 #450

Closed VikramShityalkar closed 8 months ago

VikramShityalkar commented 1 year ago

I am using the createFn from old client, however it is not working with 3.2.13 because of session token issue. I have used createFn from session but it is creating function in database which not syntactically correct.

I have attached sample function and script to create function. test.zip

Just extract the zip and do npm install and run the test.js. The demoFunction will be created but it is not usable.

tglman commented 8 months ago

Hi,

We did have some issue in the JS engine in earlier version of OrientDB, that have been fixed in more recent version, like this: https://github.com/orientechnologies/orientdb/issues/9690 now functions should work correctly.

Closing this, feel free to re-open if you still experience problems.