Morning all - I have a simple question - I hope! I...
# prisma-whats-new
d
Morning all - I have a simple question - I hope! I am trying to return latest updates on a homepage and want to do it in one query
Copy code
{
  RecentArticles: allArticles(first: 3, orderBy: updatedAt_DESC) {
    id
    fields {
      title
    }
  }
  RecentEvents: allEvents(first: 3, orderBy: updatedAt_DESC) {
    id
    fields {
      title
    }
  }
  RecentMicrosites: allMicrosites(first: 3, orderBy: updatedAt_DESC) {
    id
    fields {
      title
    }
  }
}
Is there any way I can wrap this so I get one object back?
d
you would need to merge it by yourself, graphcool would not do it for you. you can wrap this into a resolver function if you like but I’m not sure if thats a big benefit
d
mmm.. OK thanks for the response. I am working out how if there is something on the vue-apollo side tohelp