Last active
August 25, 2024 14:56
-
-
Save gwennlbh/bc2d092cbf48b5f720f5c02026095e4a to your computer and use it in GitHub Desktop.
houdini list fragment bug, mutation effective payload. schema at https://github.com/inp-net/churros/blob/4a152dd5fd673bda965b1fd26de193328f8d8313/packages/app/schema.graphql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mutation DeleteContribution($user: UID!, $option: LocalID!) { | |
deleteContribution(user: $user, option: $option) { | |
...MutationErrors | |
... on MutationDeleteContributionSuccess { | |
data { | |
...List_UserContributions_Pending_remove | |
...List_UserContributions_Paid_remove | |
...List_UserContributions_Options_insert | |
id | |
} | |
} | |
__typename | |
} | |
} | |
fragment MutationErrors on ErrorInterface { | |
__typename | |
... on Error { | |
message | |
} | |
... on ZodError { | |
fieldErrors { | |
path | |
message | |
} | |
} | |
... on NotFoundError { | |
message | |
} | |
__typename | |
} | |
fragment List_UserContributions_Pending_remove on ContributionOption { | |
id | |
} | |
fragment List_UserContributions_Paid_remove on ContributionOption { | |
id | |
} | |
fragment List_UserContributions_Options_insert on ContributionOption { | |
canMarkAsPaid | |
paidByUser: paidBy | |
localID | |
...ItemContribution | |
id | |
} | |
fragment ItemContribution on ContributionOption { | |
name | |
canMarkAsPaid | |
localID | |
price | |
paysFor { | |
...AvatarStudentAssociation | |
id | |
} | |
offeredIn { | |
...AvatarSchool | |
id | |
} | |
id | |
__typename | |
} | |
fragment AvatarStudentAssociation on StudentAssociation { | |
name | |
uid | |
pictureURL | |
id | |
__typename | |
} | |
fragment AvatarSchool on School { | |
pictureURL | |
name | |
uid | |
id | |
__typename | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sorry for the enormous schema, don't hesistate to ask for a truncated version if you need one ;)