GraphQL: Lazy resolve of fields
Find a generic solution
Avoid hitting the db to resolve available fields Eg: swhid is available in a Revision type when requested as a target. It is unnecessary to hit the DB if the query requests only the already available fields.
Migrated from T4463 (view on Phabricator)