-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
150d637
commit 0008eef
Showing
13 changed files
with
112 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1 @@ | ||
# resilient-city-api | ||
Resilience city GraphQL API, reusable ReactJS components library. | ||
## resilient-city--api |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const types = ` | ||
"Issue entitie" | ||
type Issue { | ||
id: Int! | ||
name: String | ||
description: String | ||
vote: [Vote] | ||
} | ||
`; | ||
|
||
export const queries = ` | ||
issue(id: Int!): Issue | ||
getAllIssues: [Issue] | ||
`; | ||
export const mutations = ` | ||
addIssue(id:Int, name:String, description:String): Issue! | ||
`; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export const types = ` | ||
"User entitie" | ||
type User { | ||
id: Int! | ||
firstName: String! | ||
lastName: String! | ||
email: String | ||
username: String! | ||
image: String | ||
vote: [Vote] | ||
gender: String | ||
} | ||
`; | ||
|
||
export const queries = ` | ||
user(id: Int!): User | ||
getAllUsers: [User] | ||
`; | ||
export const mutations = ` | ||
addUser(id:Int, name:String, email:String, username:String, image:String): User! | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export const types = ` | ||
"Vote entitie" | ||
type Vote { | ||
id: Int! | ||
date: String! | ||
user: User! | ||
issue: Issue! | ||
} | ||
`; | ||
|
||
export const queries = ` | ||
vote(id: Int!): Vote | ||
getAllVotes: [Vote] | ||
`; | ||
export const mutations = ` | ||
addVote(id:Int, date:String, user:Int): Vote! | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters