Skip to content

Instantly share code, notes, and snippets.

@dfbq91
dfbq91 / LambdaNodeCrud.js
Created October 2, 2020 16:06
Lambda Functions with Nodejs CRUD with DynamoDB
/* Here, there are GET, POST, PUT and DELETE implementations for Lambda functions with Nodejs CRUD using Dynamo DB.
Before the implementation using API Gateway, I used a passed parameter. This implementations are commented */
// GET doesn't change if we are using API Gateway
'use strict';
const AWS = require('aws-sdk'); // Load the AWS SDK for Node.js
@npearce
npearce / sort_array_of_JSON_objects.js
Last active June 26, 2024 15:50
Sort Array of JSON Object by date values
// Sort array of JSON objects by date value
const records = [
{
order_id: 12345,
order_date: "2020-03-23"
},
{
order_id: 12346,
order_date: "2020-03-20"
},