Add display user page

This commit is contained in:
Kurt Hutten
2020-11-04 07:21:47 +11:00
parent a28f126f9c
commit 217cb31ed2
11 changed files with 132 additions and 12 deletions

View File

@@ -10,6 +10,12 @@ export const user = ({ id }) => {
})
}
export const userName = ({ userName }) => {
return db.user.findOne({
where: { userName },
})
}
export const createUser = ({ input }) => {
return db.user.create({
data: input,