zonofthor
01/14/2019, 10:06 AMtype Test {
id: ID! @unique
wicked0: [String]
wicked1: [String!]
wicked2: [String!]!
}
becomes on prisma
Fields
id ID!
wicked0 [String!]!
wicked1 [String!]!
wicked2 [String!]!
and gql-gen
type Test implements Node {
id: ID!
wicked0: [String!]!
wicked1: [String!]!
wicked2: [String!]!
}
marcus
01/14/2019, 1:21 PM[String!]!
in the output schema. This is because:
1. We guarantee to never have null elements in the list.
2. There will never a null list.marcus
01/14/2019, 1:22 PMzonofthor
01/14/2019, 1:46 PMzonofthor
01/14/2019, 1:46 PMzonofthor
01/14/2019, 1:47 PMmarcus
01/14/2019, 1:55 PMNote that a to-many relation field is always set to required. For example, a field that contains many user addresses always uses the type [Address!]! and can never be of type [Address!], [Address]! or [Address].
zonofthor
01/14/2019, 2:09 PM