Skip to content

Support uid() in variables #1974

@smkhalsa

Description

@smkhalsa

As discussed here, the uid function doesn't work within variables.

The following query throws an error Cannot do uid() of a variable

    {
      a as var(func: uid(0x27d0)) {}

      q(func: uid(a)) {
        solutions : solution @facets(orderasc: sortOrder, sortOrder: sortOrder) {
          uid
          expand(_all_)
          parentID: uid(a)
        }
      }
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions