directiveLocation.js.flow 900 B

123456789101112131415161718192021222324252627282930313233
  1. // @flow strict
  2. /**
  3. * The set of allowed directive location values.
  4. */
  5. export const DirectiveLocation = Object.freeze({
  6. // Request Definitions
  7. QUERY: 'QUERY',
  8. MUTATION: 'MUTATION',
  9. SUBSCRIPTION: 'SUBSCRIPTION',
  10. FIELD: 'FIELD',
  11. FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION',
  12. FRAGMENT_SPREAD: 'FRAGMENT_SPREAD',
  13. INLINE_FRAGMENT: 'INLINE_FRAGMENT',
  14. VARIABLE_DEFINITION: 'VARIABLE_DEFINITION',
  15. // Type System Definitions
  16. SCHEMA: 'SCHEMA',
  17. SCALAR: 'SCALAR',
  18. OBJECT: 'OBJECT',
  19. FIELD_DEFINITION: 'FIELD_DEFINITION',
  20. ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION',
  21. INTERFACE: 'INTERFACE',
  22. UNION: 'UNION',
  23. ENUM: 'ENUM',
  24. ENUM_VALUE: 'ENUM_VALUE',
  25. INPUT_OBJECT: 'INPUT_OBJECT',
  26. INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION',
  27. });
  28. /**
  29. * The enum type representing the directive location values.
  30. */
  31. export type DirectiveLocationEnum = $Values<typeof DirectiveLocation>;