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
Show 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
1
+
import
{
prismaClient
}
from
"../../../middlewares"
;
2
+
3
+
export
default
{
4
+
Query
:
{
5
+
getUser
:
async
(
_
,
args
)
=>
{
6
+
const
{
id
}
=
args
;
7
+
return
prismaClient
.
user
.
findOne
({
8
+
where
:
{
9
+
id
,
10
+
},
11
+
});
12
+
},
13
+
},
14
+
};
Please
register
or
login
to post a comment