Files
internship_node/day11/resolvers/relation/relationProfile.js
T

9 lines
167 B
JavaScript
Raw Normal View History

2022-02-06 22:15:10 -05:00
"use strict";
module.exports = (parent, args, context, info) => {
if (parent.profile) {
return parent.profile;
} else {
return parent.getProfile();
}
};