dgraph_ex v0.1.2 DgraphEx.Query.Select View Source

Link to this section Summary

Link to this section Functions

Example:

iex> DgraphEx.Query.Select.new({:me, :he, you: :too, they: nil}) %DgraphEx.Query.Select{fields: [{:they, nil}, {:you, :too}, {:he, nil}, {:me, nil}]}

Example

iex> DgraphEx.Query.Select.put(%DgraphEx.Query.Select{}, :me) %DgraphEx.Query.Select{fields: [{:me, nil}]}

iex> DgraphEx.Query.Select.put(%DgraphEx.Query.Select{}, [:me, :he, you: :too, they: nil]) %DgraphEx.Query.Select{fields: [{:they, nil}, {:you, :too}, {:he, nil}, {:me, nil}]}