---
schema_version: "1"
id: b57b8eb844e4bc2e1d436baca405a6ca394e97399a4410948a1d22b25b60ba27
title: __DirectiveLocation
collection: tableau
version: next
locale: en-us
portal_url: https://docs.salesforce.com/tableau/next/en-us/api/metadata_api/reference/directivelocation.spec.md
canonical_url: https://help.tableau.com/v0.0/api/metadata_api/en-us/reference/directivelocation.spec.html
source_site: help.tableau.com
content_type: documentation
content_hash: 48b3ab77cfd47cfda20d83e44f4cf955a1ee4367e8bfff9a40364841ba805cb5
---
_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/v0.0/api/metadata_api/en-us/reference/directive.spec.html "__Directive - ")