https://github.com/chuksjoshuaa/project-management-system
A project management system built with Graphql, The frontend was built with React.js and boostrap. Users can add project, update and delete a particular project
https://github.com/chuksjoshuaa/project-management-system
bootstrap cors graphql mongodb mongoose node-js reactjs
Last synced: 3 months ago
JSON representation
A project management system built with Graphql, The frontend was built with React.js and boostrap. Users can add project, update and delete a particular project
- Host: GitHub
- URL: https://github.com/chuksjoshuaa/project-management-system
- Owner: ChuksJoshuaa
- Created: 2022-11-08T13:29:05.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-30T10:10:00.000Z (over 3 years ago)
- Last Synced: 2025-01-12T07:46:36.023Z (over 1 year ago)
- Topics: bootstrap, cors, graphql, mongodb, mongoose, node-js, reactjs
- Language: JavaScript
- Homepage: https://system-mgmt.netlify.app/
- Size: 385 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL Project Management System
## GraphQL Queries & Mutations
### Get names of all clients
```
{
clients {
name
}
}
```
### Get a single client name and email
```
{
client(id: 1) {
name
email
}
}
```
### Get name and status of all projects
```
{
projects {
name
status
}
}
```
.
### Get a single project name, description along with the client name and email
```
{
project(id: 1) {
name
description,
client {
name
email
}
}
}
```
### Create a new client and return all data
```
mutation {
addClient(name: "Chukwudi Joshua", email: "chuksjoshuaa@gmail.com", phone: "000-000-000") {
id
name
email
phone
}
}
```
### Delete a client and return id
```
mutation {
deleteClient(id: 1) {
id
}
}
```
### Create a new project and return name and description
```
mutation {
addProject(name: "Best Footballer", description: "Messi is the most complete player in the world and he has achieved a lot of individual awards;", status: progress, clientId: "636b67c1551f6c310008f0cb"){
id
name
status
description
clientId {
id
}
}
}
```
### Update a project status and return name and status
```
mutation {
updateProject(status: "completed") {
name
status
}
}
```