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-19 17:04:52 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
620d3fc56a8b5cd78fb2d7a52c10f56e279c6d68
620d3fc5
1 parent
36871603
create login typeDef, resolver
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
back/src/api/User/login/login.graphql
back/src/api/User/login/login.js
back/src/api/User/login/login.graphql
0 → 100644
View file @
620d3fc
1
+
type Mutation {
2
+
login(email: String!, password: String!): AuthPayload
3
+
}
back/src/api/User/login/login.js
0 → 100644
View file @
620d3fc
1
+
import
{
prisma
}
from
"../../../utils"
;
2
+
3
+
export
default
{
4
+
Mutation
:
{
5
+
login
:
async
(
_
,
args
)
=>
{
6
+
const
{
email
,
password
}
=
args
;
7
+
},
8
+
},
9
+
};
Please
register
or
login
to post a comment