@@ -459,3 +459,124 @@ nock("https://ruling-redbird-23.hasura.app:443", { encodedQueryParams: true })
459459 "8437d43c5966c1c6-BUD" ,
460460 ] ,
461461 ) ;
462+
463+ nock ( "https://flowing-mammal-24.hasura.app:443" , { encodedQueryParams : true } )
464+ . post ( "/v1/graphql" , {
465+ query :
466+ "mutation UpdatePost($id: uuid!, $object: posts_set_input!, $includeCategory: Boolean = false) {\n update_posts_by_pk(pk_columns: {id: $id}, _set: $object) {\n id\n title\n content\n category_id\n category @include(if: $includeCategory) {\n id\n title\n }\n }\n}\n" ,
467+ variables : {
468+ id : "572708c7-840d-430a-befd-1416bdee799a" ,
469+ object : {
470+ title : "Updated Title" ,
471+ content : "Updated Content" ,
472+ category_id : "e27156c3-9998-434f-bd5b-2b078283ff26" ,
473+ } ,
474+ includeCategory : true ,
475+ } ,
476+ operationName : "UpdatePost" ,
477+ } )
478+ . reply (
479+ 200 ,
480+ {
481+ data : {
482+ update_posts_by_pk : {
483+ id : "572708c7-840d-430a-befd-1416bdee799a" ,
484+ title : "Updated Title" ,
485+ content : "Updated Content" ,
486+ category_id : "e27156c3-9998-434f-bd5b-2b078283ff26" ,
487+ category : {
488+ id : "e27156c3-9998-434f-bd5b-2b078283ff26" ,
489+ title : "lorem1 integer tincidunt" ,
490+ } ,
491+ } ,
492+ } ,
493+ } ,
494+ [
495+ "Date" ,
496+ "Wed, 10 Jan 2024 20:56:53 GMT" ,
497+ "Content-Type" ,
498+ "application/json; charset=utf-8" ,
499+ "Content-Length" ,
500+ "274" ,
501+ "Connection" ,
502+ "close" ,
503+ "x-request-id" ,
504+ "83f68d28a0c651f19c430e2a6155ee90" ,
505+ "CF-Cache-Status" ,
506+ "DYNAMIC" ,
507+ "Content-Security-Policy" ,
508+ "upgrade-insecure-requests" ,
509+ "Referrer-Policy" ,
510+ "strict-origin-when-cross-origin" ,
511+ "Strict-Transport-Security" ,
512+ "max-age=31536000; includeSubDomains" ,
513+ "X-Content-Type-Options" ,
514+ "nosniff" ,
515+ "X-Frame-Options" ,
516+ "SAMEORIGIN" ,
517+ "X-XSS-Protection" ,
518+ "0" ,
519+ "Server" ,
520+ "cloudflare" ,
521+ "CF-RAY" ,
522+ "8437d441abf61cf1-BUD" ,
523+ ] ,
524+ ) ;
525+
526+ nock ( "https://flowing-mammal-24.hasura.app:443" , { encodedQueryParams : true } )
527+ . post ( "/v1/graphql" , {
528+ query :
529+ "mutation UpdatePost($id: uuid!, $object: posts_set_input!, $includeCategory: Boolean = false) {\n update_posts_by_pk(pk_columns: {id: $id}, _set: $object) {\n id\n title\n content\n category_id\n category @include(if: $includeCategory) {\n id\n title\n }\n }\n}\n" ,
530+ variables : {
531+ id : "572708c7-840d-430a-befd-1416bdee799a" ,
532+ object : {
533+ title : "Updated Title" ,
534+ content : "Updated Content" ,
535+ category_id : "e27156c3-9998-434f-bd5b-2b078283ff26" ,
536+ } ,
537+ } ,
538+ operationName : "UpdatePost" ,
539+ } )
540+ . reply (
541+ 200 ,
542+ {
543+ data : {
544+ update_posts_by_pk : {
545+ id : "572708c7-840d-430a-befd-1416bdee799a" ,
546+ title : "Updated Title" ,
547+ content : "Updated Content" ,
548+ category_id : "e27156c3-9998-434f-bd5b-2b078283ff26" ,
549+ } ,
550+ } ,
551+ } ,
552+ [
553+ "Date" ,
554+ "Wed, 10 Jan 2024 20:56:53 GMT" ,
555+ "Content-Type" ,
556+ "application/json; charset=utf-8" ,
557+ "Content-Length" ,
558+ "274" ,
559+ "Connection" ,
560+ "close" ,
561+ "x-request-id" ,
562+ "83f68d28a0c651f19c430e2a6155ee90" ,
563+ "CF-Cache-Status" ,
564+ "DYNAMIC" ,
565+ "Content-Security-Policy" ,
566+ "upgrade-insecure-requests" ,
567+ "Referrer-Policy" ,
568+ "strict-origin-when-cross-origin" ,
569+ "Strict-Transport-Security" ,
570+ "max-age=31536000; includeSubDomains" ,
571+ "X-Content-Type-Options" ,
572+ "nosniff" ,
573+ "X-Frame-Options" ,
574+ "SAMEORIGIN" ,
575+ "X-XSS-Protection" ,
576+ "0" ,
577+ "Server" ,
578+ "cloudflare" ,
579+ "CF-RAY" ,
580+ "8437d441abf61cf1-BUD" ,
581+ ] ,
582+ ) ;
0 commit comments