Elixpath.query
You're seeing just the function
query
, go back to Elixpath module for more information.
Link to this function
query(data, path_or_str, opts \\ [])
Specs
query(data :: term(), t() | String.t(), [Elixpath.Parser.option()]) :: {:ok, [term()]} | {:error, reason :: term()}
Query data from nested data structure.
Returns list of matches, wrapped by :ok
.
When no match, {:ok, []}
is returned.
Options
For path parsing options, see Elixpath.Parser.parse/2
.