Hi there! I'm trying to specify an extension where...
# prisma-whats-new
k
Hi there! I'm trying to specify an extension where the return type includes an array of items, so am declaring the type of the nested resource as well.
Copy code
type RoomItemPayload {
  _id: Int!
  name: String!
  path: String!
  opportunity_item_type_name: String!
}

type RoomItemsPayload {
  name: String!
  items: [RoomItemPayload!]!
}

extend type Query {
  roomItems(opportunityId: Int!, roomId: String!): RoomItemsPayload
}