directiveLocation.d.ts 891 B

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