https://github.com/nirnejak/members-graphql-endpoint
Member List GraphQL App
https://github.com/nirnejak/members-graphql-endpoint
expressjs graphql javascript lowdb nodejs
Last synced: 8 months ago
JSON representation
Member List GraphQL App
- Host: GitHub
- URL: https://github.com/nirnejak/members-graphql-endpoint
- Owner: nirnejak
- Created: 2019-08-05T07:25:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-06T13:51:19.000Z (over 1 year ago)
- Last Synced: 2025-04-13T13:06:19.783Z (about 1 year ago)
- Topics: expressjs, graphql, javascript, lowdb, nodejs
- Language: JavaScript
- Homepage: https://members-graphql-endpoint.herokuapp.com/
- Size: 941 KB
- Stars: 3
- Watchers: 0
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GraphQL App
A Node.js App using Node.js, Express.js, LowDB, GraphQL and Handlebars
## Query
```graphql
{
hello
member(id: "1") {
id
name
email
status
skills
work {
isEmployed
jobTitle
company
}
}
members(status: "inactive", name: "Jitendra Nirnejak") {
id
name
email
status
skills
work {
isEmployed
jobTitle
company
}
}
}
```
## Mutations
```graphql
mutation {
createMember(
member: {
name: "Jitendra Nirnejak",
email: "jeetnirnejak@gmail.com",
status: "active",
skills: ["react", "css", "html", "css", "javascript", "node.js"],
work: {
isEmployed: true,
jobTitle: "Software Developer",
company: "Inkoop"
}
}
) {
id,
name,
email,
status,
skills,
work {
isEmployed,
jobTitle,
company
}
}
}
```
```graphql
mutation {
updateMember(
id: "1",
member: {
status: "inactive",
skills: ["react", "css", "html", "css", "javascript", "node.js"],
work: {
isEmployed: true,
jobTitle: "Software Developer",
company: "Inkoop"
}
}
) {
id,
name,
email,
status,
skills,
work {
isEmployed,
jobTitle,
company
}
}
}
```
```graphql
mutation {
deleteMember(id: "2627be9e-819f-4d56-995d-f7e3f2575bdd") {
id
name
email
status
skills
work {
isEmployed
jobTitle
company
}
}
}
```