Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
Open-Chess-back
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Xadrez-LIvre
Open-Chess-back
Commits
4c6a3855
Commit
4c6a3855
authored
2 years ago
by
Leon A. Okida Gonçalves
Browse files
Options
Downloads
Patches
Plain Diff
Change structure of the project
parent
421863e5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
index.js
+16
-1
16 additions, 1 deletion
index.js
src/Classes/User.ts
+0
-0
0 additions, 0 deletions
src/Classes/User.ts
src/ErrorHandler.ts
+3
-3
3 additions, 3 deletions
src/ErrorHandler.ts
with
19 additions
and
4 deletions
index.js
+
16
−
1
View file @
4c6a3855
console
.
log
(
'
oi
'
);
const
{
ApolloServer
,
gql
}
=
require
(
'
apollo-server
'
);
\ No newline at end of file
const
typeDefs
=
gql
`
type Query {
hello: String
}
`
;
const
resolvers
=
{
Query
:
{
hello
:
()
=>
"
Lueinda!
"
}
};
const
server
=
new
ApolloServer
({
typeDefs
,
resolvers
});
server
.
listen
().
then
(({
url
})
=>
console
.
log
(
`Server started at
${
url
}
`
));
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/User.ts
→
src/
Classes/
User.ts
+
0
−
0
View file @
4c6a3855
File moved
This diff is collapsed.
Click to expand it.
src/ErrorHandler.ts
+
3
−
3
View file @
4c6a3855
import
{
UserInterface
}
from
"
./User
"
import
{
UserInterface
}
from
"
./
Classes/
User
"
export
class
ErrorHandler
{
export
class
ErrorHandler
{
...
@@ -11,8 +11,8 @@ export class ErrorHandler {
...
@@ -11,8 +11,8 @@ export class ErrorHandler {
throw
new
Error
(
"
Invalid user email
"
);
throw
new
Error
(
"
Invalid user email
"
);
const
newUser
:
UserInterface
=
{
const
newUser
:
UserInterface
=
{
userName
=
input
.
name
,
userName
:
input
.
name
,
userEmail
=
input
.
email
userEmail
:
input
.
email
}
}
return
newUser
;
return
newUser
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment