Skip to content

Commit

Permalink
Declare @doc and @resolver directive
Browse files Browse the repository at this point in the history
These declarations remove a lot of warnings from the PHPStorm
GraphQl plugin while editing schema.graphqls files.
  • Loading branch information
Vinai committed Jul 16, 2019
1 parent 8cf8b1d commit f653ac8
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions app/code/Magento/GraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
@@ -1,6 +1,42 @@
# Copyright © Magento, Inc. All rights reserved.
# See COPYING.txt for license details.

directive @doc(description: String="") on QUERY
| MUTATION
| FIELD
| FRAGMENT_DEFINITION
| FRAGMENT_SPREAD
| INLINE_FRAGMENT
| SCHEMA
| SCALAR
| OBJECT
| FIELD_DEFINITION
| ARGUMENT_DEFINITION
| INTERFACE
| UNION
| ENUM
| ENUM_VALUE
| INPUT_OBJECT
| INPUT_FIELD_DEFINITION

directive @resolver(class: String="") on QUERY
| MUTATION
| FIELD
| FRAGMENT_DEFINITION
| FRAGMENT_SPREAD
| INLINE_FRAGMENT
| SCHEMA
| SCALAR
| OBJECT
| FIELD_DEFINITION
| ARGUMENT_DEFINITION
| INTERFACE
| UNION
| ENUM
| ENUM_VALUE
| INPUT_OBJECT
| INPUT_FIELD_DEFINITION

type Query {
}

Expand Down

0 comments on commit f653ac8

Please sign in to comment.