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

Cannot query with argument valued "uid" #2827

Closed
ArroyoAndre opened this issue Dec 17, 2018 · 2 comments
Closed

Cannot query with argument valued "uid" #2827

ArroyoAndre opened this issue Dec 17, 2018 · 2 comments
Assignees
Labels
kind/bug Something is broken.

Comments

@ArroyoAndre
Copy link

ArroyoAndre commented Dec 17, 2018

I'm using DGraph version 1.0.10

I have a schema with a predicate
name: string @index(hash) @upsert .

I have a node with name "uid" (a string).

When trying to search for that node using the index name:

{
    all(func: eq(name, "uid")) {
        uid
    }
}

I get an error:

{
  "errors": [
    {
      "code": "ErrorInvalidRequest",
      "message": "Argument cannot be \"uid\""
    }
  ],
  "data": null
}
@MichelDiz MichelDiz added the kind/bug Something is broken. label Dec 17, 2018
@manishrjain
Copy link
Contributor

@srfrog : Can you look into this?

@srfrog
Copy link
Contributor

srfrog commented Dec 18, 2018

The code explicitly forbids a value of "uid", I'm trying to figure out why. Running some tests to find out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Development

No branches or pull requests

4 participants