Skip to content

Custom types and arrays not supported in action handlers #7256

Answered by coco98
charklewis asked this question in Question
Discussion options

You must be logged in to vote

@charklewis You can return an array of types.
For example the following action definition works:

type Mutation {
  placeOrders (OrdersInput) : [OrderOutput]
}

type OrderOutput {
  id : Int!
}

The other limitations around returning a "nested" array or object is on the roadmap for this quarter and should be lifted in a release this month or early Sep!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by charklewis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants