|
|
|
|
|
import user from './rootUser'; |
|
|
import currentUser from './rootCurrentUser'; |
|
|
|
|
|
import email from './email'; |
|
|
import coverPhoto from './coverPhoto'; |
|
|
import profilePhoto from './profilePhoto'; |
|
|
import everything from './everything'; |
|
|
import communityConnection from './communityConnection'; |
|
|
import channelConnection from './channelConnection'; |
|
|
import directMessageThreadsConnection from './directMessageThreadsConnection'; |
|
|
import threadConnection from './threadConnection'; |
|
|
import threadCount from './threadCount'; |
|
|
import settings from './settings'; |
|
|
import isAdmin from './isAdmin'; |
|
|
import contextPermissions from './contextPermissions'; |
|
|
import githubProfile from './githubProfile'; |
|
|
|
|
|
|
|
|
import type { DBUser } from 'shared/types'; |
|
|
const isPro = (dbUser: DBUser) => dbUser.betaSupporter; |
|
|
const recurringPayments = () => []; |
|
|
const invoices = () => []; |
|
|
|
|
|
module.exports = { |
|
|
Query: { |
|
|
user, |
|
|
currentUser, |
|
|
}, |
|
|
User: { |
|
|
email, |
|
|
coverPhoto, |
|
|
profilePhoto, |
|
|
everything, |
|
|
communityConnection, |
|
|
channelConnection, |
|
|
directMessageThreadsConnection, |
|
|
threadConnection, |
|
|
threadCount, |
|
|
settings, |
|
|
isAdmin, |
|
|
githubProfile, |
|
|
contextPermissions, |
|
|
isPro, |
|
|
recurringPayments, |
|
|
invoices, |
|
|
}, |
|
|
}; |
|
|
|