File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
packages/workgrid-client/src Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -529,20 +529,22 @@ setTypedMutationDefaults('deleteNotification', (client) => ({
529
529
} ) )
530
530
531
531
// graphql
532
+
532
533
// ================================================================================================================================
533
534
534
535
/** @beta */
535
536
export interface Mutations {
536
- graphql : Mutation < [ 'graphql' ] , { query : string ; variables : unknown } >
537
+ graphql : Mutation < [ 'graphql' ] , { query : string ; variables : unknown } , unknown >
537
538
}
538
539
539
540
setTypedMutationDefaults ( 'graphql' , ( client ) => ( {
540
- mutationFn : async ( payload ) => {
541
- const { query, variables } = payload
542
- const data = JSON . stringify ( {
541
+ mutationFn : async ( params ) => {
542
+ const { query, variables } = params
543
+
544
+ const data = {
543
545
query,
544
546
variables,
545
- } )
547
+ }
546
548
547
549
const response = await client . httpClient . post ( 'graphql' , data )
548
550
return response . data . data /* unwrap jsend */
You can’t perform that action at this time.
0 commit comments