Created
June 2, 2019 14:13
-
-
Save desaijay315/837ef80be30b74c229a7053e7d581993 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Post:{ | |
author(parent,args,ctx,info){ | |
return users.find((user) =>{ | |
return user.id === parent.author | |
}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment