Skip to content

Instantly share code, notes, and snippets.

View cop1fab's full-sized avatar
😍
Just pythoning for now

Copain COPAIN Fabrice cop1fab

😍
Just pythoning for now
View GitHub Profile
@cop1fab
cop1fab / server.js
Created January 28, 2020 10:34
GraphQL | Express
const express = require('express');
const express_graphql = require('express-graphql');
const { buildSchema } = require('graphql');
const schema = buildSchema(`
type Query{
message: String
}
`);
import chai from 'chai';
import chaiHttp from 'chai-http';
import app from '../../app';
const {
expect
} = chai;
chai.use(chaiHttp);
let token = '';