---
schema_version: "1"
id: 5c94562074fba51c10fde5c2bdfef32bf20e33c97cde780bd4592d1b6f6c62c2
title: __Directive
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/directive.spec.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/directive.spec.html
source_site: help.tableau.com
content_type: documentation
content_hash: 18765661412a3eee3ac0a57051799cf3c6bcf22d789670fa7399d74e7a4a1b49
---
_menu_ Types

OBJECT

# \_\_Directive

## [_link_](#graphql-schema-definition) GraphQL Schema definition

``   - type __Directive {  - # The __Directive type represents a Directive that a server supports. - name: [String](https://help.tableau.com/current/api/metadata_api/en-us/reference/string.doc.html)!  - description: [String](https://help.tableau.com/current/api/metadata_api/en-us/reference/string.doc.html)  - isRepeatable: [Boolean](https://help.tableau.com/current/api/metadata_api/en-us/reference/boolean.doc.html)!  - locations: [[__DirectiveLocation](https://help.tableau.com/current/api/metadata_api/en-us/reference/directivelocation.spec.html)!]!  - # Arguments - # **includeDeprecated**: [**Not documented**] - args(includeDeprecated: [Boolean](https://help.tableau.com/current/api/metadata_api/en-us/reference/boolean.doc.html)): [[__InputValue](https://help.tableau.com/current/api/metadata_api/en-us/reference/inputvalue.spec.html)!]!  - onOperation: [Boolean](https://help.tableau.com/current/api/metadata_api/en-us/reference/boolean.doc.html) @deprecated( reason: "Use `locations`." )  - onFragment: [Boolean](https://help.tableau.com/current/api/metadata_api/en-us/reference/boolean.doc.html) @deprecated( reason: "Use `locations`." )  - onField: [Boolean](https://help.tableau.com/current/api/metadata_api/en-us/reference/boolean.doc.html) @deprecated( reason: "Use `locations`." ) - }   ``

## [_link_](#require-by) Require by

- [\_\_Schema_A GraphQL Introspection defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, the entry points for query, mutation, and subscription operations._](https://help.tableau.com/current/api/metadata_api/en-us/reference/schema.spec.html "__Schema - A GraphQL Introspection defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, the entry points for query, mutation, and subscription operations.")