mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-21 05:53:18 +12:00
16 lines
385 B
Elixir
16 lines
385 B
Elixir
|
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
|