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-14 03:06:02 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
25f31c434824982bd69cb7b80abb25806ae115f5
25f31c43
1 parent
beccac8a
init searchUser
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
0 deletions
back/src/api/User/searchUser/searchUser.graphql
back/src/api/User/searchUser/searchUser.js
back/src/api/User/searchUser/searchUser.graphql
0 → 100644
View file @
25f31c4
1
+
type Query {
2
+
searchUser(name: String!): [User!]!
3
+
}
back/src/api/User/searchUser/searchUser.js
0 → 100644
View file @
25f31c4
1
+
import
{
prisma
}
from
"../../../middlewares"
;
2
+
3
+
export
default
{
4
+
Query
:
{
5
+
searchUser
:
async
(
_
,
args
)
=>
{
6
+
const
{
name
}
=
args
;
7
+
const
user
=
await
prisma
.
user
.
findOne
({});
8
+
},
9
+
},
10
+
};
Please
register
or
login
to post a comment