Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on creating property with minimum value #353

Closed
creisle opened this issue Dec 14, 2018 · 3 comments
Closed

Error on creating property with minimum value #353

creisle opened this issue Dec 14, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@creisle
Copy link

creisle commented Dec 14, 2018

Version Information

OrientJS: v3.0.1
OrientDB: v3.0.6
node: v8.11.2

Steps to reproduce

I am currently migrating from code that was using 2.X.X to 3.X.X, I run into the following error when I try to create a property which has a minimum value.

const conf = {...} // my server settings etc
const odb = new OrientDBClient({
    host: conf.server.host,
    port: conf.server.port
});
const server = await odb.connect();
await server.createDatabase({name: conf.db.name, username: conf.server.user, password: conf.server.pass});
const db = await server.session({name: conf.db.name, username: conf.db.user, password: conf.db.pass});
const testclass = await db.class.create('testclass', 'V');
const prop = await testclass.property.create({name: 'testprop1', type: 'integer', min: 0});

Am I supposed to be using different syntax in v3.X.X ?

@wolf4ood
Copy link
Member

Hi @creisle

it should be the same apis, let me check

@wolf4ood wolf4ood self-assigned this Dec 18, 2018
@wolf4ood wolf4ood added the bug label Dec 27, 2018
wolf4ood added a commit that referenced this issue Dec 27, 2018
@wolf4ood
Copy link
Member

Hi @creisle

i've just pushed a fix. It will be available in the next OrientJS release

@wolf4ood wolf4ood added this to the 3.0.2 milestone Dec 27, 2018
@wolf4ood
Copy link
Member

Hi @creisle

OrientJS 3.0.2 is available on NPM with this fix.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants