This file contains 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
// Getting a post with its title, author, blocks, likes and comments | |
post(id: 123) { | |
title, | |
author { | |
username, | |
avatar_url | |
}, | |
blocks { | |
type, | |
text, |
This file contains 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 { | |
graphql, | |
GraphQLInt, | |
GraphQLString, | |
GraphQLFloat, | |
GraphQLBoolean, | |
GraphQLList, | |
GraphQLNonNull, | |
GraphQLObjectType, | |
GraphQLSchema |
This file contains 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 { | |
graphql, | |
GraphQLInt, | |
GraphQLString, | |
GraphQLFloat, | |
GraphQLBoolean, | |
GraphQLList, | |
GraphQLObjectType, | |
GraphQLSchema | |
} from 'graphql'; |
This file contains 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 from 'react'; | |
import {fromJS} from 'immutable'; | |
import ServerError from '../app/components/shared/ServerError.jsx'; | |
class Renderer { | |
constructor(services, callback, req) { | |
this.services = services; | |
if (typeof callback === 'function') { |
This file contains 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
(function exportTable() { | |
var table = document.getElementById('errors'), | |
header = 'type,line,column,title,description,browser\n', | |
csv, | |
data = [], | |
i, node; | |
for (i = 0; i < table.childNodes.length; i += 1) { | |
node = table.childNodes[i]; |
NewerOlder