Skip to content

jkevxx/express-apollo-mongodb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apollo Server Express & Mongodb | Nodejs y GraphQL API CRUD


Get all tasks

query {
  getAllTasks {
    title
    id
    description
  }
}

Get one Task

query {
  getTask(id: "65406c37fc029a412867bbbf") {
    title
    description
  }
}

Create Task

mutation {
  createTask(task: { title: "task 5", description: "desc 5" }) {
    id
    title
    description
  }
}

Update Task

mutation {
  updateTask(id: "65406c37fc029a412867bbbf", task: { title: "task 1" }) {
    id
    title
    description
  }
}

Delete Task

mutation {
  deleteTask(id: "65406cb9c41247547399a635")
}

Video Tutorial Apollo Server in 2023 video Tutorial

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published