Register PODS Custom Field with WPGraphQL [closed]

This WPGraphQL recipe covers how to set up a new field using register_graphql_field() (function doc) but it doesn’t have any examples on how to pass in image/file fields. If I were doing this for a quick project, I would just output the information I needed without getting too complicated/deep into the API. But as it turns out..

Some good news if you’re looking to make things easier for yourself — work on Pods 2.8 (in beta right now) has enabled more WPGraphQL capability for Pods. I was able to build out an entire Pods Pro WPGraphQL Add-On which allows you to set up GraphQL access for whole Pods as well as all/individual fields in that Pod. I put extra attention into making sure that relationships and file fields are well represented in the GraphQL structure, you should check out the demo video.