Skip to content

Added the ability to add newlines when formatting arguments #23

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from

Conversation

dylanowen
Copy link
Contributor

This change lets you format queries

query {
  node(my: 1, schema: 2, has: 3, a: 4, lot: 5, of: 6, arguments: 7, obj: {key1: 123, key2: 456})
}

like

query {
   node(
      my: 1,
      schema: 2,
      has: 3,
      a: 4,
      lot: 5,
      of: 6,
      arguments: 7,
      obj: {
         key1: 123,
         key2: 456
      }
   )
}

@dylanowen dylanowen changed the title Formatting Added the ability to add newlines when formatting arguments Jul 7, 2019
Copy link
Member

@LegNeato LegNeato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this play well with other tools? Or are they dynamic depending on the length of the line?

@dylanowen
Copy link
Contributor Author

Unfortunately it's not dynamic, but you can enable it via the style struct.

tailhook added a commit that referenced this pull request Nov 25, 2021
@tailhook
Copy link
Collaborator

Merged in ff34bae

@tailhook tailhook closed this Nov 25, 2021
@dylanowen dylanowen deleted the formatting branch October 5, 2022 17:44
@dylanowen dylanowen restored the formatting branch February 27, 2023 20:09
@dylanowen dylanowen deleted the formatting branch February 27, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants