.graphqlconfig.yml subscription endpoint


#1

How do I set a subscription endpoint in my .graphqlconfig.yml file so Playground can pick it up? With my current config (below), I get an Unexpected end of JSON input error so I assume I have it labelled incorrectly but I can’t seem to find the docs for it:

projects:
  app:
    schemaPath: "src/schema.graphql"
    extensions:
      endpoints:
        default: "http://localhost:3000/graphql"
        subscription: "http://localhost:3001/subscriptions"
  database:
    schemaPath: "src/generated/graphcool.graphql"
    extensions:
      graphcool: database/graphcool.yml
      prepare-binding:
        output: src/generated/graphcool.ts
        generator: graphcool-ts