mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### Why? In preparation for moving all turbopack crates Also makes them easier to work with in general. Closes PACK-3164
43 lines
599 B
TypeScript
43 lines
599 B
TypeScript
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
|
|
}
|
|
`)
|
|
}
|