Download next.js/crates/next-custom-transforms/tests/fixture/relay/input.tsx from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 599 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/relay/input.tsx
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/crates/next-custom-transforms/tests/fixture/relay/input.tsx
-
curl -L -o input.tsx https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/crates/next-custom-transforms/tests/fixture/relay/input.tsx
599 Bytes
| const variableQuery = graphql` | |
| query InputVariableQuery { | |
| hello | |
| } | |
| ` | |
| fetchQuery(graphql` | |
| query InputUsedInFunctionCallQuery { | |
| hello | |
| } | |
| `) | |
| function SomeQueryComponent() { | |
| useLazyLoadQuery(graphql` | |
| query InputInHookQuery { | |
| hello | |
| } | |
| `) | |
| } | |
| const variableMutation = graphql` | |
| query InputVariableMutation { | |
| someMutation | |
| } | |
| ` | |
| commitMutation( | |
| environment, | |
| graphql` | |
| query InputUsedInFunctionCallMutation { | |
| someMutation | |
| } | |
| ` | |
| ) | |
| function SomeMutationComponent() { | |
| useMutation(graphql` | |
| query InputInHookMutation { | |
| someMutation | |
| } | |
| `) | |
| } | |