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 { 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', |
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
{ | |
paymentRequests { | |
id | |
message | |
amount | |
user { | |
id | |
name | |
} | |
} |