I hereby claim:
- I am sogko on github.
- I am sogko (https://keybase.io/sogko) on keybase.
- I have a public key ASD0R6VsTfZSI37_2wKvxjFy4ES_Qltu2-sJRunyNzzA-Qo
To claim this, I am signing this object:
'use strict'; | |
// simple express server | |
var express = require('express'); | |
var app = express(); | |
var router = express.Router(); | |
app.use(express.static('public')); | |
app.get('/', function(req, res) { | |
res.sendfile('./public/index.html'); |
go list -f '{{.Deps}}' | tr "[" " " | tr "]" " " | xargs go list -f '{{if not .Standard}}{{.ImportPath}}{{end}}' |
package main | |
import ( | |
"github.com/graphql-go/graphql" | |
"github.com/graphql-go/handler" | |
"net/http" | |
) | |
type Todo struct { | |
ID string `json:"id"` |
// GraphQL Shorthand Notation Cheatsheet | |
// - Read the full article at: https://wehavefaces.net/graphql-shorthand-notation-cheatsheet-17cd715861b6 | |
Schema | |
======= | |
GraphQL Schema => schema | |
Built-in scalar types |
I hereby claim:
To claim this, I am signing this object:
/* | |
A pure ES6-style composable React component that handles clicks outside of a HTML node. | |
This is for those who prefers composibility over mixins. | |
Simply drop-in the event listener component into your React component. | |
Adapted from: https://github.com/Pomax/react-onclickoutside | |
*/ | |
var React = require('react'); |
package main | |
import ( | |
"encoding/json" | |
"net/http" | |
"github.com/graphql-go/graphql" | |
"github.com/graphql-go/handler" | |
"github.com/graphql-go/relay/examples/starwars" | |
) |
package main | |
import ( | |
"github.com/graphql-go/graphql" | |
"github.com/kr/pretty" | |
) | |
type Todo struct { | |
ID string `json:"id"` | |
Text string `json:"text"` |
package data | |
import ( | |
"github.com/graphql-go/graphql" | |
"github.com/graphql-go/relay" | |
) | |
var postType *graphql.Object | |
var queryType *graphql.Object | |
var Schema graphql.Schema |
package main | |
import ( | |
"net/http" | |
"github.com/graphql-go/graphql" | |
"github.com/graphql-go/graphql-go-handler" | |
) | |
var queryType = graphql.NewObject(graphql.ObjectConfig{ | |
// ... |