directiveLocation.js.flow 899 B

1234567891011121314151617181920212223242526272829303132
  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>;