--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/multiparser-graphql/expressions.js --- # Input ```js graphql(schema, ` query allPartsByManufacturerName($name: String!) { allParts(filter:{manufacturer: {name: $name}}) { ... PartAll }} ${fragments.all} `) const veryLongVariableNameToMakeTheLineBreak = graphql(schema, ` query allPartsByManufacturerName($name: String!) { allParts(filter:{manufacturer: {name: $name}}) { ... PartAll }} ${fragments.all} `) ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,23 +1,21 @@ graphql( schema, ` - query allPartsByManufacturerName($name: String!) { - allParts(filter: { manufacturer: { name: $name } }) { - ...PartAll - } - } - ${fragments.all} - `, +query allPartsByManufacturerName($name: String!) { + allParts(filter:{manufacturer: {name: $name}}) { +... PartAll +}} +${fragments.all} +`, ); const veryLongVariableNameToMakeTheLineBreak = graphql( schema, ` - query allPartsByManufacturerName($name: String!) { - allParts(filter: { manufacturer: { name: $name } }) { - ...PartAll - } - } - ${fragments.all} - `, +query allPartsByManufacturerName($name: String!) { + allParts(filter:{manufacturer: {name: $name}}) { +... PartAll +}} +${fragments.all} +`, ); ``` # Output ```js graphql( schema, ` query allPartsByManufacturerName($name: String!) { allParts(filter:{manufacturer: {name: $name}}) { ... PartAll }} ${fragments.all} `, ); const veryLongVariableNameToMakeTheLineBreak = graphql( schema, ` query allPartsByManufacturerName($name: String!) { allParts(filter:{manufacturer: {name: $name}}) { ... PartAll }} ${fragments.all} `, ); ```