Trying to deploy types and it says now that relati...
# prisma-whats-new
z
Trying to deploy types and it says now that relations need to be in format of
MyType
,
MyType!
, or
[MyType!]!
whereas
[MyType!]
was allowed before. Does this now mean there must always be objects within this because of the array being required?
a
It has always been [MyType!]!, even for optional relationships. An empty array satisfies this condition, so that means that relationships are still optional.
z
It was totally deployed with
[MyType!]
but good to know and it must have been corrected now. Thanks!
n
@zebapy it was deployed as
[MyType!]
before, but it would actually be "interpreted" as
[MyType!]!