Skip to content

Instantly share code, notes, and snippets.

View rlancer's full-sized avatar
💭
Staying type safe

Robert Lancer rlancer

💭
Staying type safe
  • Robert Lancer
  • New York
View GitHub Profile
{
paymentRequests {
id
message
amount
user {
id
name
}
}
const { GraphQLSchema, GraphQLObjectType, GraphQLString, GraphQLID, GraphQLFloat, GraphQLInt, GraphQLNonNull, GraphQLList } = require('graphql')
const express = require('express')
const graphqlHTTP = require('express-graphql')
const DataLoader = require('dataloader')
// Spoofed data
const DATA_PAYMENT = [
{
id: '1',
user_id: '1',