prisma-archive / graphcool-lib

A convenient tool to use in Graphcool functions to make requests against your Graphcool API
33 stars 6 forks source link

Endpoints #12

Closed timsuchanek closed 7 years ago

timsuchanek commented 7 years ago

In order to support the new docker runtime with graphcool-lib, we need to add endpoint information to the context.

I propose adjusting the GraphcoolContext type to add the endpoint object containing system, simple, relay, subscriptions:

export interface GraphcoolContext {
  token: string
  serviceId: string
  alias: string
  // new endpoints:
  endpoints: {
    system: string
    simple: string
    relay: string
    subscriptions: string
  }
}

As soon as we have the new URL scheme specced out, we should revisit this.

Update:

All endpoints in one subobject

Update 2:

Exact values for the shared cluster:

Exact values for the local cluster:

marktani commented 7 years ago

also see https://github.com/graphcool/graphcool/issues/827

schickling commented 7 years ago

I'd propose to wrap the endpoints into a subobject called endpoints.

timsuchanek commented 7 years ago

Implemented in 0.1.0