$ npm install
# development
$ npm run start
# production mode
$ npm run start:prod
# unit tests
$ npm run test
Please refer to the MongoDB documentation for comprehensive usage and reference: Click here. Make sure to do your configuration in src/app.module.ts
query {
tasks {
_id
title
description
}
}
query {
task(_id: "your-task-id") {
_id
title
description
}
}
mutation {
createTask(createTaskInput: {title: "GOod morning", description: "A little chores"}) {
_id
title
description
}
}
mutation {
updateTask(updateTaskInput: {
_id: "your-task-id",
title: "Updated Title",
description: "Updated Description",
}) {
_id
title
description
}
}
mutation {
removeTask(_id: "your-task-id") {
_id
title
description
}
}