Download spectrum/shared/graphql/queries/user/getCurrentUserSettings.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/queries/user/getCurrentUserSettings.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/shared/graphql/queries/user/getCurrentUserSettings.js
-
curl -L -o getCurrentUserSettings.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/shared/graphql/queries/user/getCurrentUserSettings.js
833 Bytes
| // @flow | |
| import { graphql } from 'react-apollo'; | |
| import gql from 'graphql-tag'; | |
| import userInfoFragment from '../../fragments/user/userInfo'; | |
| import type { UserInfoType } from '../../fragments/user/userInfo'; | |
| import userSettingsFragment from '../../fragments/user/userSettings'; | |
| import type { UserSettingsType } from '../../fragments/user/userSettings'; | |
| export type GetCurrentUserSettingsType = { | |
| ...$Exact<UserInfoType>, | |
| email: ?string, | |
| pendingEmail: ?string, | |
| ...$Exact<UserSettingsType>, | |
| }; | |
| export const getCurrentUserSettings = gql` | |
| query getCurrentUserSettings { | |
| user: currentUser { | |
| ...userInfo | |
| pendingEmail | |
| ...userSettings | |
| } | |
| } | |
| ${userInfoFragment} | |
| ${userSettingsFragment} | |
| `; | |
| export default graphql(getCurrentUserSettings, { | |
| options: { fetchPolicy: 'network-only' }, | |
| }); | |