Update By id
โธ Update the object's properties that match the payload and
๐ leave the others unchanged.
Replace By id [Mongo specific API]
โธ Update the object's properties that match the payload and
๐ remove the rest of properties.
โ
List of Feature
โก๏ธ Primary key override
โก๏ธ Modify response using Query Params
โก๏ธ Nested level update
โก๏ธ Upsert support
โก๏ธ Retrive response prior to update or after the update
โญ Params โญ
๐ id โธ User can update single record by id
๐ primaryKey โธ Based on primary key field, user can update data.
โญ Query Params โญ
๐ select โธ Retrieve the fields based on the user's needs.
๐ deep โธ Obtain more precise / details data in a certain field.
๐ upsert
โธ true :- If record is not present then perform insert operation
โธ false :- If record is present then perform update operation
๐ returnDocument
โธ before :- Retrieve the response prior to updating it.
โธ after :- Retrieve the response after the update.
Youtube video link
Websites
API Docs link
Generated-APIs
https://docs.apimaker.dev/v1/docs/apis-all/generated-apis/auto-generated-update-by-id-api.html
https://docs.apimaker.dev/v1/docs/apis-all/generated-apis/auto-generated-replace-by-id-api.html
Schema-APIs
https://docs.apimaker.dev/v1/docs/apis-all/schema-apis/auto-generated-schema-based-update-by-id-api.html
https://docs.apimaker.dev/v1/docs/apis-all/schema-apis/auto-generated-schema-based-replace-by-id-api.html
More Examples
Generated-APIs
https://docs.apimaker.dev/v1/examples/sys/db/updateById.html
https://docs.apimaker.dev/v1/examples/sys/db/replaceById.html
Schema-APIs
https://docs.apimaker.dev/v1/examples/sys/db/gen/updateByIdGen.html
https://docs.apimaker.dev/v1/examples/sys/db/gen/replaceByIdGen.html
Follow on twitter
Linked In
https://www.linkedin.com/company/api-maker
Top comments (0)