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
| { | |
| "aggregate": { | |
| "timestamp": "2018-03-07T15:29:42.986Z", | |
| "scenariosCreated": 1200, | |
| "scenariosCompleted": 1200, | |
| "requestsCompleted": 1200, | |
| "latency": { | |
| "min": 4, | |
| "max": 136.5, | |
| "median": 5.3, |
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
| { | |
| "Version": "2012-10-17", | |
| "Statement": [ | |
| { | |
| "Effect": "Allow", | |
| "Action": [ | |
| "cloudformation:List*", | |
| "cloudformation:Get*", | |
| "cloudformation:PreviewStackUpdate" | |
| ], |
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
| const query = gql` | |
| query FetchWhatMyAppNeeds { | |
| # run 1 | |
| tasks { | |
| id | |
| details { | |
| date | |
| title | |
| # run 2 | |
| header @client # virutal field (date + title) |
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
| /* | |
| the extends function takes a base class and returns a function | |
| that can be extended into a new class given methods | |
| the methods must be in the form of [ | |
| { key: "methodName": value: function } | |
| ] | |
| this is pulled from babel => es5 of a class extend |
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
| const MOVIE_QUERY = gql` | |
| query GetMovie($id: Int!) { | |
| movie(id: $id) { | |
| id | |
| title | |
| overview | |
| poster_path | |
| } | |
| } | |
| `; |
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 React, {Fragment} from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import {createElement} from 'glamor/react'; | |
| import {createResource} from 'simple-cache-provider'; | |
| import {ApolloProvider, Query} from 'react-apollo'; | |
| import ApolloClient, {gql} from 'apollo-boost'; | |
| /* @jsx createElement */ | |
| import withCache from './withCache'; |
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
| const path = require("path"); | |
| module.exports = { | |
| entry: ["./index.js"], | |
| output: { | |
| path: path.resolve(__dirname, "dist"), | |
| filename: "./server.js", | |
| }, | |
| externals: [ | |
| function(context, request, callback) { |
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 gql from 'graphql-tag'; | |
| import { Query } from 'react-apollo'; | |
| const query = gql` | |
| query SomeQuery { | |
| foo { | |
| bar | |
| baz | |
| } | |
| } |
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
| open Sql; | |
| let model = | |
| define( | |
| ~table="users", | |
| ~fields=[("id", UUID), ("firstName", String), ("lastName", String), ("email", String)] | |
| ); | |
| Sql.findById(model, 123) | |
| |> Js.Promise.then_( |
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
| { | |
| "data": { | |
| "__schema": { | |
| "queryType": { | |
| "name": "Query" | |
| }, | |
| "mutationType": { | |
| "name": "Mutation" | |
| }, | |
| "subscriptionType": null, |