ash_postgres/test/select_test.exs

16 lines
385 B
Elixir
Raw Normal View History

defmodule AshPostgres.SelectTest do
@moduledoc false
use AshPostgres.RepoCase, async: false
alias AshPostgres.Test.{Api, Post}
require Ash.Query
test "values not selected in the query are not present in the response" do
Post
|> Ash.Changeset.new(%{title: "title"})
|> Api.create!()
assert [%{title: nil}] = Api.read!(Ash.Query.select(Post, :id))
end
end