- getDirective<T>(node, name): T | undefined
Parameters
- node:
| OperationDefinitionNode
| FragmentDefinitionNode
| SchemaDefinitionNode
| ScalarTypeDefinitionNode
| ObjectTypeDefinitionNode
| InterfaceTypeDefinitionNode
| UnionTypeDefinitionNode
| EnumTypeDefinitionNode
| InputObjectTypeDefinitionNode
| FieldNode
| FragmentSpreadNode
| InlineFragmentNode
| FieldDefinitionNode
| EnumValueDefinitionNode
| InputValueDefinitionNode - name: string
Returns T | undefined