Elixpath.Access protocol (elixpath v0.1.0)
Used for querying each data type.
Link to this section Summary
Functions
Fetches all children that matches key from data.
Link to this section Types
Specs
t() :: term()
Link to this section Functions
Link to this function
query(data, key, opts)
Specs
query(data :: term(), key :: Elixpath.Tag.wildcard() | term(), opts :: list()) :: {:ok, [matched :: term()]} | {:error, reason :: term()}
Fetches all children that matches key from data.
key can be Elixpath.Tag.wildcard() (i.e. :elixpath_wildcard), which stands for "all the children"