# THIS FILE HAS BEEN AUTO-GENERATED BY THE "GRAPHCOOL DEPLOY" | |
# DO NOT EDIT THIS FILE DIRECTLY | |
# | |
# Model Types | |
# | |
type User implements Node { | |
id: ID! | |
name: String! |
import React, { PropTypes } from 'react'; | |
import styled from 'styled-components' | |
const Wrapper = styled.div` | |
// styles here that used to be for .test | |
` | |
const Label = styled.label` | |
// label styles here | |
` |
/** | |
* Updates the passed dialog to retain focus and restore it when the dialog is closed. Won't | |
* upgrade a dialog more than once. Supports IE11+ and is a no-op otherwise. | |
* @param {!HTMLDialogElement} dialog to upgrade | |
*/ | |
var registerFocusRestoreDialog = (function() { | |
if (!window.WeakMap || !window.MutationObserver) { | |
return function() {}; | |
} | |
var registered = new WeakMap(); |
Here are the main breaking changes between the 0.x and 1.0 versions of Apollo Client.
The structure of fetchMoreResult
has been changed. Previously fetchMoreResult
used to contain data
and loading
fields, now fetchMoreResult
is what fetchMoreResult.data
used to be. This means your updateQueries
function has to change as follows:
updateQuery: (prev, { fetchMoreResult }) => {
// 🔥 Node 7.6 has async/await! Here is a quick run down on how async/await works | |
const axios = require('axios'); // promised based requests - like fetch() | |
function getCoffee() { | |
return new Promise(resolve => { | |
setTimeout(() => resolve('☕'), 2000); // it takes 2 seconds to make coffee | |
}); | |
} |
namelookup: %{time_namelookup}\n | |
connect: %{time_connect}\n | |
appconnect: %{time_appconnect}\n | |
pretransfer: %{time_pretransfer}\n | |
redirect: %{time_redirect}\n | |
starttransfer: %{time_starttransfer}\n | |
----------\n | |
total: %{time_total}\n |
import R from 'ramda'; | |
const items = [ | |
{id: 1, name: 'Al', country: 'AA'}, | |
{id: 2, name: 'Connie', country: 'BB'}, | |
{id: 3, name: 'Doug', country: 'CC'}, | |
{id: 4, name: 'Zen', country: 'BB'}, | |
{id: 5, name: 'DatGGboi', country: 'AA'}, | |
{id: 6, name: 'Connie', country: 'AA'}, | |
]; |
Disclaimer: This piece is written anonymously. The names of a few particular companies are mentioned, but as common examples only.
This is a short write-up on things that I wish I'd known and considered before joining a private company (aka startup, aka unicorn in some cases). I'm not trying to make the case that you should never join a private company, but the power imbalance between founder and employee is extreme, and that potential candidates would
<!-- Example #1 - no styling --> | |
Made with ❤ in Switzerland | |
Made with ♥ in Switzerland | |
Made with ♡ in Switzerland | |
Made with ❤️ in Switzerland | |
Made with ♥️ in Switzerland | |
<!-- Example #2 - inline-styled ❤ --> | |
Made with <span style="color: #e25555;">♥</span> in Switzerland | |
Made with <span style="color: #e25555;">♥</span> in Switzerland |