Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 468 Bytes

5. - Variables - v2.md

File metadata and controls

20 lines (19 loc) · 468 Bytes
  1. Returns a query for the given variables. The query won't execute if the variables aren't provided.

    Person = Person:$LastName/$FirstName
    {
        FirstName = @node(),
        LastName = \#FamilyName,
        NickName,
        Friends[] = /Friends/
        {
        }
    }
    
  2. Mutations can also use variables.

    Person = @node-add(Person:$lastName/, $firstName)
    {
        string NickName = $nickName
    }