makeExecutableSchema
import { makeExecutableSchema } from 'graphql-tools';
const executableSchema = makeExecutableSchema({
typeDefs,
resolvers,
});
makeExecutableSchema
import { makeExecutableSchema } from 'graphql-tools';
const executableSchema = makeExecutableSchema({
typeDefs,
resolvers,
});
import express from 'express';
import bodyParser from 'body-parser';
import { graphqlExpress } from 'apollo-server-express';
let typeDefs = ``;
let resolvers = { /* ... */ };
let executableSchema = /* makeExecutableSchema ... */
const PORT = 3000;
import { ApolloClient } from 'apollo-client';
import { HttpLink } from 'apollo-link-http'; // HttpLink replaces createNetworkInterface
// Create client that connects to the server
const client = new ApolloClient({
link: HttpLink({ uri: /* server URL */}),
})
var express = require('express'); | |
var app = express(); | |
var webpack = require('webpack'); | |
var path = require('path'); | |
var compiler = webpack(require('./webpack.config.js')); | |
app.use(require('webpack-dev-middleware')(compiler, { | |
noInfo: true, | |
publicPath: '/' |
Prerequisites:
I hereby claim:
To claim this, I am signing this object:
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
actions: { | |
logMessage: function() { | |
this.get('log')(); | |
} | |
} | |
}); |
# Generate a new pgp key: (better to use gpg2 instead of gpg in all below commands) | |
gpg --gen-key | |
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null` | |
# check current keys: | |
gpg --list-secret-keys --keyid-format LONG | |
# See your gpg public key: | |
gpg --armor --export YOUR_KEY_ID | |
# YOUR_KEY_ID is the hash in front of `sec` in previous command. (for example sec 4096R/234FAA343232333 => key id is: 234FAA343232333) |
I hereby claim:
To claim this, I am signing this object: