directiveLocation.js 966 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.DirectiveLocation = void 0;
  6. /**
  7. * The set of allowed directive location values.
  8. */
  9. var DirectiveLocation = Object.freeze({
  10. // Request Definitions
  11. QUERY: 'QUERY',
  12. MUTATION: 'MUTATION',
  13. SUBSCRIPTION: 'SUBSCRIPTION',
  14. FIELD: 'FIELD',
  15. FRAGMENT_DEFINITION: 'FRAGMENT_DEFINITION',
  16. FRAGMENT_SPREAD: 'FRAGMENT_SPREAD',
  17. INLINE_FRAGMENT: 'INLINE_FRAGMENT',
  18. VARIABLE_DEFINITION: 'VARIABLE_DEFINITION',
  19. // Type System Definitions
  20. SCHEMA: 'SCHEMA',
  21. SCALAR: 'SCALAR',
  22. OBJECT: 'OBJECT',
  23. FIELD_DEFINITION: 'FIELD_DEFINITION',
  24. ARGUMENT_DEFINITION: 'ARGUMENT_DEFINITION',
  25. INTERFACE: 'INTERFACE',
  26. UNION: 'UNION',
  27. ENUM: 'ENUM',
  28. ENUM_VALUE: 'ENUM_VALUE',
  29. INPUT_OBJECT: 'INPUT_OBJECT',
  30. INPUT_FIELD_DEFINITION: 'INPUT_FIELD_DEFINITION'
  31. });
  32. /**
  33. * The enum type representing the directive location values.
  34. */
  35. exports.DirectiveLocation = DirectiveLocation;