Bug corrected

This commit is contained in:
Luis Fernando Molina committed 2018-09-06 13:13:37 +02:00
1 parent 12fb40fd9c
commit 8c76fef385
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -7,7 +7,7 @@ class UserProfile extends Component {
displayUserProfile(){
const {user} = this.props.data;
console.log(user);
if(user){
return(
<div>
+1
View File
@@ -9,6 +9,7 @@ const getUsersQuery = gql`
lastName
role {
id
name
}
}
}
+1 -1
View File
@@ -66,7 +66,7 @@ const RootQuery = new GraphQLObjectType({
resolve(parent,args) {
// Code to get data from data source.
return User.findById(args.id, onRespnse);
return User.findById(args.id);
}
},
role: {