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

Views can't be used as bindVars when constructing an AqlQuery #667

Closed
uatuko opened this issue Jun 13, 2020 · 1 comment
Closed

Views can't be used as bindVars when constructing an AqlQuery #667

uatuko opened this issue Jun 13, 2020 · 1 comment
Labels
fixed Issue has been resolved but remains open due to a pending release. semver-minor This issue does not require any backwards-incompatible changes to address.
Milestone

Comments

@uatuko
Copy link
Contributor

uatuko commented Jun 13, 2020

const view = db.arangoSearchView("some-view");
const result = await db.query(aql`
  FOR d IN ${view}
  SEARCH PHRASE(d.key, "some value", "text_en")
  RETURN d
`);

The above throws ArangoError: AQL: SEARCH condition used on non-view near 'RETURN d' at position 4:3 (while parsing).

I can make this work by using const view = db.collection("some-view");, but that's a hack.

pluma added a commit that referenced this issue Jun 16, 2020
@pluma pluma added the semver-minor This issue does not require any backwards-incompatible changes to address. label Jun 16, 2020
@pluma
Copy link
Contributor

pluma commented Jun 16, 2020

This will be fixed in the next preview release of v7.

@pluma pluma added this to the v7 milestone Jun 18, 2020
@pluma pluma added the fixed Issue has been resolved but remains open due to a pending release. label Jul 6, 2020
pluma added a commit that referenced this issue Jul 10, 2020
@pluma pluma closed this as completed Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed Issue has been resolved but remains open due to a pending release. semver-minor This issue does not require any backwards-incompatible changes to address.
Projects
None yet
Development

No branches or pull requests

2 participants