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

Query works in edgedb ui, but not with client #1157

Open
haikyuu opened this issue Dec 16, 2024 · 0 comments
Open

Query works in edgedb ui, but not with client #1157

haikyuu opened this issue Dec 16, 2024 · 0 comments

Comments

@haikyuu
Copy link

haikyuu commented Dec 16, 2024

Describe the bug
A clear and concise description of what the bug is.

Reproduction
Run this query:

await client.query(`
Select schema::Module{
  *,
  parent_id := (
	  with p := re_match(r'^(.*?)::[\w]+$', .name)[0]
	  select detached schema::Module filter .name = p LIMIT 1
  )
 }
`)

Expected behavior
It should work. But parent_id is always null.

Versions (please complete the following information):

  • OS:
  • EdgeDB version (e.g. 2.0): 5.6+adb9e77"
  • EdgeDB CLI version (e.g. 2.0): EdgeDB CLI 5.5.1+cc9315a
  • edgedb-js version (e.g. 0.20.10;): [email protected]
  • Node/Deno version: v20.17.0

Additional context
Add any other context about the problem here.

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

No branches or pull requests

1 participant