I hereby claim:
- I am abustamam on github.
- I am abustamam_nacl (https://keybase.io/abustamam_nacl) on keybase.
- I have a public key ASDX70IDWwLxPF_ydwhTktUur61QYOoEyGs7-aeqlXTvewo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
type IContext = | |
| { isLoggedIn: boolean; loggedInUser?: any, initialized: boolean, account?: undefined } | |
| { isLoggedIn: false; loggedInUser?: undefined, initialized: boolean, account?: undefined } | |
| { isLoggedIn: true; loggedInUser?: any, initialized: boolean, account?: undefined } | |
| { isLoggedIn: boolean; loggedInUser?: any, initialized: boolean; account?: undefined } | |
| { isLoggedIn: boolean; loggedInUser?: any, initialized: false; account?: undefined } | |
| { isLoggedIn: boolean; loggedInUser?: any, initialized: true; account?: Account } |
import { one, two } from 'numbers' |
import one from 'one/one' |
/* app.js | |
* | |
* This is our RSS feed reader application. It uses the Google | |
* Feed Reader API to grab RSS feeds as JSON object we can make | |
* use of. It also uses the Handlebars templating library and | |
* jQuery. | |
*/ | |
// The names and URLs to all of the feeds we'd like available. | |
var allFeeds = [ |
areStatesEqual: (prev, next) => { | |
return ( | |
prev.users.all === next.users.all | |
); | |
} | |
// should be | |
areStatesEqual: (next, prev) => { | |
return ( |
import { ApolloClient } from 'apollo-client' | |
import { HttpLink } from 'apollo-link-http' | |
import { InMemoryCache } from 'apollo-cache-inmemory' | |
import gql from 'graphql-tag' | |
const client = new ApolloClient({ | |
link: new HttpLink({ uri: 'https://graphql.example.com' }), | |
cache: new InMemoryCache() | |
}) |
{ | |
"articles": [ | |
{ | |
"postId": 1, | |
"title": "Why GraphQL is cool", | |
"author": { | |
"name": "Rasheed Bustamam", | |
"email": "[email protected]" | |
} | |
}, |
type User { | |
name: String! | |
email: String! | |
} | |
type query { | |
allUsers: [User] | |
user(username: String!): User | |
} |