Function attachTypeResolversToSchema