Description
I'm starting to build another version of GraphQL library using RxJS instead of Promise for reactive programming.
I won't add Rx to this library, just build another library and reuse most of code this library provides (with module dependency).
To minimize the efforts of maintenance, I need to refactor this original graphql library to extract Promise-associated code into separated files, and export some functions to make them importable for reuse. It won't change any behavior which this library provides. Just separate the concern of event handler (Promise, Rx, and so on) from the GraphQL design.
At a glance, I think I just need to refactor the file graphql/execution/execute.js
mainly. The goal is make Promise-based functions become callback-based (Promise-free), and turn them into Promise-based in separated files (and also I can turn them into Rx-based easily).