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
const nodemailer = require('nodemailer'); | |
const sendgridTransport = require('nodemailer-sendgrid-transport'); | |
const transporter = nodemailer.createTransport( | |
sendgridTransport({ | |
auth: { | |
api_key: | |
process.env.SENDGRID_API_KEY | |
} | |
}) |
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
<?php | |
namespace PHPSTORM_META { | |
/** | |
* PhpStorm Meta file, to provide autocomplete information for PhpStorm | |
* Generated on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <[email protected]> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ |
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 {GraphQLServer} from "graphql-yoga"; | |
import db from './db'; | |
import Query from './resolvers/Query' | |
import Mutation from './resolvers/Mutation' | |
import User from './resolvers/User' | |
import Post from './resolvers/Post' | |
import Comment from './resolvers/Comment' | |
/* | |
const fs = require('fs'); | |
const typeDefs = fs.readFileSync('./src/schema.graphqls','utf8'); |