Gorodov Maksim
06/29/2018, 6:01 AMtype Action {
id: ID! @unique
title: String!
date: String!
description: String
karma: String!
executors: String!
members: [ActionMember!]
author: User!
}
And I get this error: The relation field members
has the wrong format: [ActionMember]
Possible Formats: ActionMember
, ActionMember!
, [ActionMember!]!
Why can't I have [ActionMember!]
? I want to make this field optionalalbinekb
06/29/2018, 6:14 AMGorodov Maksim
06/29/2018, 6:16 AMGorodov Maksim
06/29/2018, 6:16 AMActionMember
, ActionMember!
, [ActionMember!]!
albinekb
06/29/2018, 6:21 AMalbinekb
06/29/2018, 6:21 AMGorodov Maksim
06/29/2018, 6:21 AM[ActionMember!]!
means that I should pass an array of `ActionMember`salbinekb
06/29/2018, 6:25 AMGorodov Maksim
06/29/2018, 6:29 AM!
means that field is required, isn't it?Jenkins
06/29/2018, 6:34 AM[ ]
is a valid array. It's just empty.Jenkins
06/29/2018, 6:35 AM["Hello", "World"]
and [ ]
.albinekb
06/29/2018, 7:39 PMalbinekb
06/29/2018, 7:40 PM