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

session.index.create ignores ifnotexist #418

Closed
Aeonrush opened this issue Dec 9, 2019 · 0 comments
Closed

session.index.create ignores ifnotexist #418

Aeonrush opened this issue Dec 9, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@Aeonrush
Copy link
Contributor

Aeonrush commented Dec 9, 2019

Hi
OrientDB Docker image tag: 3.0.25
Orientjs: 3.0.8

Example

const session = await pool.acquire();
session.index.create({
  name: 'User._username',
  class: 'User',
  type: 'UNIQUE',
  properties: ['username'],
  ifnotexist: true
})

I'm getting an Error

  throw e;
  ^
OrientDB.RequestError: Index User._username already exists

Aeonrush added a commit to Aeonrush/orientjs that referenced this issue Dec 9, 2019
@wolf4ood wolf4ood self-assigned this Dec 11, 2019
@wolf4ood wolf4ood added the bug label Dec 11, 2019
@wolf4ood wolf4ood added this to the 3.0.9 milestone Dec 11, 2019
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