---
schema_version: "1"
id: dcb1853137b73e1f63259c24841ec3ad5a5f652b4ec880c1374bb325bc07046a
title: __DirectiveLocation
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/metadata_api/reference/directivelocation.spec.md
canonical_url: https://help.tableau.com/current/api/metadata_api/en-us/reference/directivelocation.spec.html
source_site: help.tableau.com
content_type: documentation
content_hash: a3b60fbd8b35dac78ab25a7cdffa668bd77aa978c3574af976591ab4db3545f2
---
_menu_ Types

ENUM

# \_\_DirectiveLocation

An enum describing valid locations where a directive can be placed

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

`   - enum __DirectiveLocation {  - # Indicates the directive is valid on queries. - QUERY  - # Indicates the directive is valid on mutations. - MUTATION  - # Indicates the directive is valid on subscriptions. - SUBSCRIPTION  - # Indicates the directive is valid on fields. - FIELD  - # Indicates the directive is valid on fragment definitions. - FRAGMENT_DEFINITION  - # Indicates the directive is valid on fragment spreads. - FRAGMENT_SPREAD  - # Indicates the directive is valid on inline fragments. - INLINE_FRAGMENT  - # Indicates the directive is valid on variable definitions. - VARIABLE_DEFINITION  - # Indicates the directive is valid on a schema SDL definition. - SCHEMA  - # Indicates the directive is valid on a scalar SDL definition. - SCALAR  - # Indicates the directive is valid on an object SDL definition. - OBJECT  - # Indicates the directive is valid on a field SDL definition. - FIELD_DEFINITION  - # Indicates the directive is valid on a field argument SDL definition. - ARGUMENT_DEFINITION  - # Indicates the directive is valid on an interface SDL definition. - INTERFACE  - # Indicates the directive is valid on an union SDL definition. - UNION  - # Indicates the directive is valid on an enum SDL definition. - ENUM  - # Indicates the directive is valid on an enum value SDL definition. - ENUM_VALUE  - # Indicates the directive is valid on an input object SDL definition. - INPUT_OBJECT  - # Indicates the directive is valid on an input object field SDL definition. - INPUT_FIELD_DEFINITION - }   `

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

- [\_\_Directive_null_](https://help.tableau.com/current/api/metadata_api/en-us/reference/directive.spec.html "__Directive - ")