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
Hide 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
type Query {
searchUser(name: String!): [User!]!
}
back/src/api/User/searchUser/searchUser.js
0 → 100644
View file @
25f31c4
import
{
prisma
}
from
"../../../middlewares"
;
export
default
{
Query
:
{
searchUser
:
async
(
_
,
args
)
=>
{
const
{
name
}
=
args
;
const
user
=
await
prisma
.
user
.
findOne
({});
},
},
};
Please
register
or
login
to post a comment