graphql.config.json 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "README_schema" : "Specifies how to load the GraphQL schema that completion, error highlighting, and documentation is based on in the IDE",
  3. "schema": {
  4. "README_file" : "Remove 'file' to use request url below. A relative or absolute path to the JSON from a schema introspection query, e.g. '{ data: ... }' or a .graphql/.graphqls file describing the schema using GraphQL Schema Language. Changes to the file are watched.",
  5. "README_request" : "To request the schema from a url instead, remove the 'file' JSON property above (and optionally delete the default graphql.schema.json file).",
  6. "request": {
  7. "url" : "http://localhost:3000/graphql",
  8. "method" : "POST",
  9. "README_postIntrospectionQuery" : "Whether to POST an introspectionQuery to the url. If the url always returns the schema JSON, set to false and consider using GET",
  10. "postIntrospectionQuery" : true,
  11. "README_options" : "See the 'Options' section at https://github.com/then/then-request",
  12. "options" : {
  13. "headers": {
  14. "user-agent" : "JS GraphQL"
  15. }
  16. }
  17. }
  18. },
  19. "README_endpoints": "A list of GraphQL endpoints that can be queried from '.graphql' files in the IDE",
  20. "endpoints" : [
  21. {
  22. "name": "Vendure Dev (http://localhost:8080/graphql)",
  23. "url": "http://localhost:3000/graphql",
  24. "options" : {
  25. "headers": {
  26. "user-agent" : "JS GraphQL"
  27. }
  28. }
  29. }
  30. ]
  31. }