mirror of
https://github.com/ash-project/ash_graphql.git
synced 2024-09-20 05:13:33 +12:00
fix: make primary key attributes appropriately non nil
This commit is contained in:
parent
9eda8c2cc1
commit
50a3a1ccda
1 changed files with 2 additions and 2 deletions
|
@ -2188,7 +2188,7 @@ defmodule AshGraphql.Resource do
|
||||||
field_type =
|
field_type =
|
||||||
attribute.type
|
attribute.type
|
||||||
|> field_type(attribute, resource)
|
|> field_type(attribute, resource)
|
||||||
|> maybe_wrap_non_null(require? && not attribute.allow_nil?)
|
|> maybe_wrap_non_null(require?)
|
||||||
|
|
||||||
[
|
[
|
||||||
%Absinthe.Blueprint.Schema.FieldDefinition{
|
%Absinthe.Blueprint.Schema.FieldDefinition{
|
||||||
|
@ -2213,7 +2213,7 @@ defmodule AshGraphql.Resource do
|
||||||
field_type =
|
field_type =
|
||||||
attribute.type
|
attribute.type
|
||||||
|> field_type(attribute, resource)
|
|> field_type(attribute, resource)
|
||||||
|> maybe_wrap_non_null(require? && not attribute.allow_nil?)
|
|> maybe_wrap_non_null(require?)
|
||||||
|
|
||||||
%Absinthe.Blueprint.Schema.FieldDefinition{
|
%Absinthe.Blueprint.Schema.FieldDefinition{
|
||||||
description: attribute.description,
|
description: attribute.description,
|
||||||
|
|
Loading…
Reference in a new issue