https://github.com/crgiopeca88/graphql-me-experiments
Graphql - ExpressJs- MongoDB experiments
https://github.com/crgiopeca88/graphql-me-experiments
expressjs graphql javascript mongodb
Last synced: 2 months ago
JSON representation
Graphql - ExpressJs- MongoDB experiments
- Host: GitHub
- URL: https://github.com/crgiopeca88/graphql-me-experiments
- Owner: CrgioPeca88
- Created: 2021-03-17T20:29:26.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-18T23:22:00.000Z (about 4 years ago)
- Last Synced: 2025-01-16T07:21:59.196Z (4 months ago)
- Topics: expressjs, graphql, javascript, mongodb
- Language: JavaScript
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# graphql-me-experiments
Graphql - ExpressJs - MongoDB*Mongoose - experiments## Local Run (Babel)
After cloning, go to the root folder and run:
- `npm install`
- `npm start`## Compiling Files (Babel) and Run them (Node).
- `npm install`
- `npm run build`
- `npm run build-serve`### Queries example to test from GraphiQl:
```
query {
greet(name: "CrgioPeca88")
getTasks {
_id
title
description
completed
}
getUsers{
_id
firstname
lastname
nickname
}
}
```
```
mutation{
createTask(input: {
title: "To Sleep"
description: "To Sleep description ... To Sleep... To Sleep"
completed: false
}) {
_id
title
}
createUser(input: {
firstname: "Crgio"
lastname: "Peca"
email: "[email protected]"
nickname: "CrgioPeca88"
}) {
_id
nickname
}
deleteUser(_id: "XxXxXXXxXxXxXx"){
_id
firstname
nickname
}
updateUser(
_id: "XxXxXXXxXxXxXx",
input: {
firstname: "CrgioU"
email: "[email protected]"
nickname: "CrgioPeca88U"
}
) {
_id
firstname
lastname
nickname
}
}
```