Error while define input types for action #6109
Answered
by
SusanAdey
niekcandaele
asked this question in
Question
-
Can anyone help me with creating an action please? Not sure whats going wrong here. Error message in comment at the bottom. Do I not create the UserInput type correctly? |
Beta Was this translation helpful? Give feedback.
Answered by
SusanAdey
Nov 4, 2020
Replies: 1 comment
-
The new type definition should use input rather than type. You use type when defining the output from the action ie User. The following is what you want for the input type definition. You will need to define your output type structure as well. input UserInput { |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
niekcandaele
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The new type definition should use input rather than type. You use type when defining the output from the action ie User. The following is what you want for the input type definition. You will need to define your output type structure as well.
input UserInput {
firstName: String!
lastName: String!
birthDate: timetz!
}