Download spectrum/api/queries/user/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.29 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/user/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/api/queries/user/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/api/queries/user/index.js
1.29 kB
| // @flow | |
| 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'; | |
| // no-op resolvers to transition while removing payments | |
| 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, | |
| }, | |
| }; | |