improvement: more non null constraints

This commit is contained in:
Zach Daniel 2021-09-03 13:30:47 -04:00
parent cd52eabd2c
commit 91a457ed2e
2 changed files with 2 additions and 2 deletions

View file

@ -96,7 +96,7 @@ defmodule AshGraphql.Api do
identifier: :id, identifier: :id,
module: schema, module: schema,
name: "id", name: "id",
type: :id type: %Absinthe.Blueprint.TypeReference.NonNull{of_type: :id}
} }
], ],
identifier: :node, identifier: :node,

View file

@ -2152,7 +2152,7 @@ defmodule AshGraphql.Resource do
%Absinthe.Blueprint.Schema.FieldDefinition{ %Absinthe.Blueprint.Schema.FieldDefinition{
description: attribute.description, description: attribute.description,
identifier: :id, identifier: %Absinthe.Blueprint.TypeReference.NonNull{of_type: :id},
module: schema, module: schema,
name: "id", name: "id",
type: :id, type: :id,