fix: make primary key attributes appropriately non nil

This commit is contained in:
Zach Daniel 2021-09-03 13:04:52 -04:00
parent 9eda8c2cc1
commit 50a3a1ccda

View file

@ -2188,7 +2188,7 @@ defmodule AshGraphql.Resource do
field_type =
attribute.type
|> field_type(attribute, resource)
|> maybe_wrap_non_null(require? && not attribute.allow_nil?)
|> maybe_wrap_non_null(require?)
[
%Absinthe.Blueprint.Schema.FieldDefinition{
@ -2213,7 +2213,7 @@ defmodule AshGraphql.Resource do
field_type =
attribute.type
|> field_type(attribute, resource)
|> maybe_wrap_non_null(require? && not attribute.allow_nil?)
|> maybe_wrap_non_null(require?)
%Absinthe.Blueprint.Schema.FieldDefinition{
description: attribute.description,