We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No response
@shopify/[email protected]
Call query from a loader. Eg.
export const loader = (async ({context}: LoaderArgs) => { const data = await context.storefront.query<any>(query); return data; }) satisfies LoaderFunction;
Expected a way to make a query using something like a TypedDocumentNode for low maintenance return types and typed query variables.
Need to maintain the return type by hand or use any.
The text was updated successfully, but these errors were encountered:
This is being explored in #297 and #271 👍
Sorry, something went wrong.
Hi @mw10013! Checkout this PoC implementation here: #707
frandiox
Successfully merging a pull request may close this issue.
What is the location of your example repository?
No response
What version of Hydrogen are you using?
@shopify/[email protected]
What version of Remix are you using?
No response
Steps to Reproduce
Call query from a loader. Eg.
Expected Behavior
Expected a way to make a query using something like a TypedDocumentNode for low maintenance return types and typed query variables.
Actual Behavior
Need to maintain the return type by hand or use any.
The text was updated successfully, but these errors were encountered: