--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/multiparser-graphql/react-relay.js --- # Input ```js const { graphql } = require("react-relay"); graphql` mutation MarkReadNotificationMutation( $input : MarkReadNotificationData! ) { markReadNotification(data: $input ) { notification {seenState} } } `; graphql.experimental` mutation MarkReadNotificationMutation( $input : MarkReadNotificationData! ) { markReadNotification(data: $input ) { notification {seenState} } } `; ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,21 +1,17 @@ const { graphql } = require("react-relay"); graphql` - mutation MarkReadNotificationMutation($input: MarkReadNotificationData!) { - markReadNotification(data: $input) { - notification { - seenState - } - } - } + mutation MarkReadNotificationMutation( + $input + : MarkReadNotificationData! + ) +{ markReadNotification(data: $input ) { notification {seenState} } } `; graphql.experimental` - mutation MarkReadNotificationMutation($input: MarkReadNotificationData!) { - markReadNotification(data: $input) { - notification { - seenState - } - } - } + mutation MarkReadNotificationMutation( + $input + : MarkReadNotificationData! + ) +{ markReadNotification(data: $input ) { notification {seenState} } } `; ``` # Output ```js const { graphql } = require("react-relay"); graphql` mutation MarkReadNotificationMutation( $input : MarkReadNotificationData! ) { markReadNotification(data: $input ) { notification {seenState} } } `; graphql.experimental` mutation MarkReadNotificationMutation( $input : MarkReadNotificationData! ) { markReadNotification(data: $input ) { notification {seenState} } } `; ```