graphqlschema.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. ace.define("ace/snippets/graphqlschema",[], function(require, exports, module) {
  2. "use strict";
  3. exports.snippetText = "# Type Snippet\n\
  4. trigger type\n\
  5. snippet type\n\
  6. type ${1:type_name} {\n\
  7. ${2:type_siblings}\n\
  8. }\n\
  9. \n\
  10. # Input Snippet\n\
  11. trigger input\n\
  12. snippet input\n\
  13. input ${1:input_name} {\n\
  14. ${2:input_siblings}\n\
  15. }\n\
  16. \n\
  17. # Interface Snippet\n\
  18. trigger interface\n\
  19. snippet interface\n\
  20. interface ${1:interface_name} {\n\
  21. ${2:interface_siblings}\n\
  22. }\n\
  23. \n\
  24. # Interface Snippet\n\
  25. trigger union\n\
  26. snippet union\n\
  27. union ${1:union_name} = ${2:type} | ${3: type}\n\
  28. \n\
  29. # Enum Snippet\n\
  30. trigger enum\n\
  31. snippet enum\n\
  32. enum ${1:enum_name} {\n\
  33. ${2:enum_siblings}\n\
  34. }\n\
  35. ";
  36. exports.scope = "graphqlschema";
  37. });
  38. (function() {
  39. ace.require(["ace/snippets/graphqlschema"], function(m) {
  40. if (typeof module == "object" && typeof exports == "object" && module) {
  41. module.exports = m;
  42. }
  43. });
  44. })();