mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-19 12:53:40 +12:00
fix: don't assume filter
is non-nil for gets
This commit is contained in:
parent
7e2fbb0358
commit
b1ab52959d
1 changed files with 4 additions and 4 deletions
|
@ -1280,7 +1280,7 @@ defmodule AshGraphql.Graphql.Resolver do
|
|||
to_errors(
|
||||
[
|
||||
Ash.Error.Query.NotFound.exception(
|
||||
primary_key: Map.new(filter),
|
||||
primary_key: Map.new(filter || []),
|
||||
resource: resource
|
||||
)
|
||||
],
|
||||
|
@ -1292,7 +1292,7 @@ defmodule AshGraphql.Graphql.Resolver do
|
|||
query,
|
||||
{:error,
|
||||
Ash.Error.Query.NotFound.exception(
|
||||
primary_key: Map.new(filter),
|
||||
primary_key: Map.new(filter || []),
|
||||
resource: resource
|
||||
)}
|
||||
]}
|
||||
|
@ -1445,7 +1445,7 @@ defmodule AshGraphql.Graphql.Resolver do
|
|||
to_errors(
|
||||
[
|
||||
Ash.Error.Query.NotFound.exception(
|
||||
primary_key: Map.new(filter),
|
||||
primary_key: Map.new(filter || []),
|
||||
resource: resource
|
||||
)
|
||||
],
|
||||
|
@ -1457,7 +1457,7 @@ defmodule AshGraphql.Graphql.Resolver do
|
|||
query,
|
||||
{:error,
|
||||
Ash.Error.Query.NotFound.exception(
|
||||
primary_key: Map.new(filter),
|
||||
primary_key: Map.new(filter || []),
|
||||
resource: resource
|
||||
)}
|
||||
]}
|
||||
|
|
Loading…
Reference in a new issue