-
-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
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
Support +page.server.gql #762
Comments
and the form actions in |
Actions are more for |
you can see here https://github.com/xmlking/svelte-starter-kit/tree/main/src/routes/(app)/dashboard/policies/%5Bid%5D I want to replace this |
I would see
Today you have one action called
All this too say that you have some custom code to write somewhere (your own business logic). I see that you are using row "gql queries" and "await fetch", Did you try doing something like (having import { GetByIDStore } from '$houdini'
export async function load(event) {
const gql = new GetByIDStore()
const { data } = await gql.fetch({ event })
// Your custom logic
return { data }
} I just throw this here as a memo, maybe:
(I don't know how it would look like) EDIT const uncheckItem = graphql(`
mutation UncheckItem($id: ID!) {
uncheckItem(item: $id) {
item {
id
completed
}
}
}
`)
uncheckItem.mutate({id: '123'}) |
This would be great to have. Really just want a |
Describe the feature
Would be very interesting to automatically convert a
+page.server.gql
file into a load function that gets created inside of a.server.js
fileedit: Since there are a lot of 👍 on this issue I should probably mention that this is relatively straight forward, even if it sounds a bit daunting. If someone wants to take this on, please reach out to me on Discord
The text was updated successfully, but these errors were encountered: