Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-04-09 23:30:39 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
dede1e84e9f925f98e4968112ce887faccbffdf2
dede1e84
1 parent
bf30b3dc
create getUser resolver
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
back/src/api/User/getUser/getUser.js
back/src/api/User/getUser/getUser.js
0 → 100644
View file @
dede1e8
import
{
prismaClient
}
from
"../../../middlewares"
;
export
default
{
Query
:
{
getUser
:
async
(
_
,
args
)
=>
{
const
{
id
}
=
args
;
return
prismaClient
.
user
.
findOne
({
where
:
{
id
,
},
});
},
},
};
Please
register
or
login
to post a comment