@@ -448,3 +448,105 @@ nock("https://ruling-redbird-23.hasura.app:443", { encodedQueryParams: true })
448448 "8437587e1f6a733a-BUD" ,
449449 ] ,
450450 ) ;
451+
452+ nock ( "https://flowing-mammal-24.hasura.app:443" , { encodedQueryParams : true } )
453+ . post ( "/v1/graphql" , {
454+ query :
455+ "mutation DeletePost($id: uuid!, $includeTitle: Boolean = false) {\n delete_posts_by_pk(id: $id) {\n id\n title @include(if: $includeTitle)\n }\n}\n" ,
456+ variables : {
457+ id : "9a83b4c2-5d1e-47f6-b9c5-3a2d8e1f0c7b" ,
458+ includeTitle : true ,
459+ } ,
460+ operationName : "DeletePost" ,
461+ } )
462+ . reply (
463+ 200 ,
464+ {
465+ data : {
466+ delete_posts_by_pk : {
467+ id : "9a83b4c2-5d1e-47f6-b9c5-3a2d8e1f0c7b" ,
468+ title : "Aenean ultricies non libero sit amet pellentesque" ,
469+ } ,
470+ } ,
471+ } ,
472+ [
473+ "Date" ,
474+ "Wed, 10 Jan 2024 19:32:24 GMT" ,
475+ "Content-Type" ,
476+ "application/json; charset=utf-8" ,
477+ "Content-Length" ,
478+ "137" ,
479+ "Connection" ,
480+ "close" ,
481+ "x-request-id" ,
482+ "7d98c24a10b32a6e7c1f5d9b8e4a2c1d" ,
483+ "CF-Cache-Status" ,
484+ "DYNAMIC" ,
485+ "Content-Security-Policy" ,
486+ "upgrade-insecure-requests" ,
487+ "Referrer-Policy" ,
488+ "strict-origin-when-cross-origin" ,
489+ "Strict-Transport-Security" ,
490+ "max-age=31536000; includeSubDomains" ,
491+ "X-Content-Type-Options" ,
492+ "nosniff" ,
493+ "X-Frame-Options" ,
494+ "SAMEORIGIN" ,
495+ "X-XSS-Protection" ,
496+ "0" ,
497+ "Server" ,
498+ "cloudflare" ,
499+ "CF-RAY" ,
500+ "84375883ac84684c-BUD" ,
501+ ] ,
502+ ) ;
503+
504+ nock ( "https://flowing-mammal-24.hasura.app:443" , { encodedQueryParams : true } )
505+ . post ( "/v1/graphql" , {
506+ query :
507+ "mutation DeletePost($id: uuid!, $includeTitle: Boolean = false) {\n delete_posts_by_pk(id: $id) {\n id\n title @include(if: $includeTitle)\n }\n}\n" ,
508+ variables : {
509+ id : "7b5c8a2d-6e9f-4a1b-8c3d-2e0f5a9b4c7d" ,
510+ } ,
511+ operationName : "DeletePost" ,
512+ } )
513+ . reply (
514+ 200 ,
515+ {
516+ data : {
517+ delete_posts_by_pk : {
518+ id : "7b5c8a2d-6e9f-4a1b-8c3d-2e0f5a9b4c7d" ,
519+ } ,
520+ } ,
521+ } ,
522+ [
523+ "Date" ,
524+ "Wed, 10 Jan 2024 19:32:25 GMT" ,
525+ "Content-Type" ,
526+ "application/json; charset=utf-8" ,
527+ "Content-Length" ,
528+ "77" ,
529+ "Connection" ,
530+ "close" ,
531+ "x-request-id" ,
532+ "3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d" ,
533+ "CF-Cache-Status" ,
534+ "DYNAMIC" ,
535+ "Content-Security-Policy" ,
536+ "upgrade-insecure-requests" ,
537+ "Referrer-Policy" ,
538+ "strict-origin-when-cross-origin" ,
539+ "Strict-Transport-Security" ,
540+ "max-age=31536000; includeSubDomains" ,
541+ "X-Content-Type-Options" ,
542+ "nosniff" ,
543+ "X-Frame-Options" ,
544+ "SAMEORIGIN" ,
545+ "X-XSS-Protection" ,
546+ "0" ,
547+ "Server" ,
548+ "cloudflare" ,
549+ "CF-RAY" ,
550+ "8437588b1d56733a-BUD" ,
551+ ] ,
552+ ) ;
0 commit comments