git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
const R = require('ramda'); | |
const aws = require("aws-sdk"); | |
const { GraphQLClient } = require("graphql-request"); | |
aws.config.update({ | |
region: process.env.REGION | |
}); | |
const cognitoidentityserviceprovider = new aws.CognitoIdentityServiceProvider({ | |
apiVersion: "2016-04-18" | |
}); |
const https = require('https'); | |
const AWS = require("aws-sdk"); | |
const urlParse = require("url").URL; | |
const appsyncUrl = process.env.API_BACKENDGRAPHQL_GRAPHQLAPIENDPOINTOUTPUT; | |
const region = process.env.REGION; | |
const endpoint = new urlParse(appsyncUrl).hostname.toString(); | |
const graphqlQuery = require('./query.js').mutation; | |
const apiKey = process.env.API_KEY; | |
exports.handler = async (event) => { |
const tuple = <T extends Array<unknown>>(...args: T): T => args; | |
// `Object.keys` does not return the keys as string literals, only strings. Use this helper as a | |
// workaround. https://github.com/Microsoft/TypeScript/pull/12253#issuecomment-263132208 | |
const keys = <O extends object>(obj: O) => Object.keys(obj) as Array<keyof O>; | |
// `Object.entries` is ES2017, so we must define our own version. | |
const entries = <K extends string, V>(obj: Record<K, V>) => | |
keys(obj).map(key => tuple(key, obj[key])); | |
const fromEntries = <K extends string, V>(arr: Array<[K, V]>) => |
/* | |
* Top level index.js | |
*/ | |
let R = require('ramda') | |
global.trace = msg => R.tap(x => console.log(msg, x)) | |
/* | |
* ... | |
* |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream