github.com/speedoops/go-gqlrest-demo@v0.0.0-20220710122636-5c6460aeab4f/graph/directive.graphqls (about) 1 """ 2 Marks an element of a GraphQL schema as only available via a preview header 3 """ 4 directive @preview( 5 """ 6 The identifier of the API preview that toggles this field. 7 """ 8 toggledBy: String! 9 ) on SCALAR | OBJECT | FIELD_DEFINITION | ARGUMENT_DEFINITION | INTERFACE | UNION | ENUM | ENUM_VALUE | INPUT_OBJECT | INPUT_FIELD_DEFINITION 10 11 directive @hide( 12 for: [String!]! 13 ) on FIELD_DEFINITION 14 15 directive @http( 16 url: String! 17 method: String 18 ) on FIELD_DEFINITION 19 20 directive @hasRole(role: Role!) on FIELD_DEFINITION 21 enum Role { 22 ADMIN 23 USER 24 }