Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>graphql-validation-directivesNew to Visual Studio Code? Get it now.
graphql-validation-directives

graphql-validation-directives

Zane Hitchcox

|
406 installs
| (0) | Free
Easily collapse and uncollapse graphql validation directives with a quick command
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

How it works

So, you can make validation directive like this

type User {
  id: ID! @id
  firstName
  @validation(
    min: 3
    max: 100
  )
}

, but this can get a little cluttered in your view. This plugin registers each validation directive as a region, and then lets you collapse it with Ctrl + Shift + P > Fold All Regions. Then, unfold with Ctrl + Shift + P > Unfold All Regions.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft