tailcallhq / tailcall

High Performance GraphQL Runtime
https://tailcall.run
Apache License 2.0
1.29k stars 254 forks source link

Support multiple resolvers on fields #3120

Open tusharmath opened 3 days ago

tusharmath commented 3 days ago

Currently, only one resolver at a time is supported on a field. We want to change it to allow multiple resolvers:

DSL Changes

type Query {
  data: Data
    @http(url: "http://api.com/foo")
    @http(url: "http://api.com/bar")

  dataList: [Data]
    @http(url: "http://api.com/foo")
    @http(url: "http://api.com/bar")
}

Runtime Changes

Technical Requirements