graphql

stefan 2019-11-28T19:03:43.110800Z

Yup, queries work just like fields on an object

domkm 2019-11-28T19:04:40.110900Z

There's nothing stopping you from doing that

domkm 2019-11-28T19:05:40.111100Z

lacinia-pedestal might not have that built in but it seems easy enough to check whether the request is an object or an array of objects

hlship 2019-11-28T21:39:20.111300Z

query {
  customer(id: 12345) { name }
  order(id: "12345") { date }
}
A single query can hit multiple query operations at the same time.

hlship 2019-11-28T21:41:14.111700Z

{"data": {"customer": "fred", "order": "20191128"}}

domkm 2019-11-28T21:41:28.111900Z

Yeah, good point. I assumed he was referring to Apollo's query batching but perhaps not