ecto_materialized_path icon indicating copy to clipboard operation
ecto_materialized_path copied to clipboard

Tree structure & hierarchy for ecto models

Results 4 ecto_materialized_path issues
Sort by recently updated
recently updated
newest added

``` post |> Post.parent() |> Repo.one() ``` results in > ** (Ecto.Query.CastError) deps/ecto_materialized_path/lib/ecto_materialized_path.ex:73: value `4` in `where` cannot be cast to type {:in, :id} in query: > > from a...

That is, the following test fails ```elixir test "build_child/1" do comment = %Comment{id: 17, path: [89]} assert %Comment{id: nil, path: [89, 17]} = Comment.build_child(comment) end ``` with ``` 1) test...

When using UUID's as a table's primary key it currently fails because of the check if path values are integers. Extended to check if path values are either integer or...