Needed to get keys and values into a pair of arrays for some sanitation of row data.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloClient, InMemoryCache, HttpLink } from 'apollo-boost' | |
import { createUploadLink } from 'apollo-upload-client' | |
import fetch from 'isomorphic-unfetch' | |
let apolloClient = null | |
function create(initialState) { | |
// Check out https://github.com/zeit/next.js/pull/4611 if you want to use the AWSAppSyncClient | |
return new ApolloClient({ | |
connectToDevTools: process.browser, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { | |
concat | |
, get | |
, includes | |
, isArray | |
, isBoolean | |
, isPlainObject | |
, isString | |
, keys | |
, map |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.0.js"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.0.js"> |