JKHeadley / JKHeadley/rest-hapi

add functionality of Upsert

Open
#64 6 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted
Dominant language
JavaScript
Stars
1.2k
Forks
155
PR merge metrics
No merged PRs in 30d

Description

Hi,
Sometime we want to update the document if that is already inserted otherwise we will insert a new one for this like mongo give us **Upsert:true** option, so suppose i am using Rest-Hapi then how can i achieve the same thing via Rest-Hapi, i mean is there a way to do this.

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reviewing Rest-Hapi's generated CRUD behavior and how its MongoDB integration handles create and update operations. The issue names no files or tests, so first identify the relevant entry points and establish tests showing that an existing document is updated and a missing document is inserted.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, mongodb, node.js
Domain
api, backend, database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.