{"action":"closed","issue":{"url":"https://api.github.com/repos/DxCx/graphql-rxjs/issues/40","repository_url":"https://api.github.com/repos/DxCx/graphql-rxjs","labels_url":"https://api.github.com/repos/DxCx/graphql-rxjs/issues/40/labels{/name}","comments_url":"https://api.github.com/repos/DxCx/graphql-rxjs/issues/40/comments","events_url":"https://api.github.com/repos/DxCx/graphql-rxjs/issues/40/events","html_url":"https://github.com/DxCx/graphql-rxjs/issues/40","id":279168418,"number":40,"title":"Make compatible with Apollo Link","user":{"login":"smkhalsa","id":6362903,"avatar_url":"https://avatars3.githubusercontent.com/u/6362903?v=4","gravatar_id":"","url":"https://api.github.com/users/smkhalsa","html_url":"https://github.com/smkhalsa","followers_url":"https://api.github.com/users/smkhalsa/followers","following_url":"https://api.github.com/users/smkhalsa/following{/other_user}","gists_url":"https://api.github.com/users/smkhalsa/gists{/gist_id}","starred_url":"https://api.github.com/users/smkhalsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smkhalsa/subscriptions","organizations_url":"https://api.github.com/users/smkhalsa/orgs","repos_url":"https://api.github.com/users/smkhalsa/repos","events_url":"https://api.github.com/users/smkhalsa/events{/privacy}","received_events_url":"https://api.github.com/users/smkhalsa/received_events","type":"User","site_admin":false},"labels":[{"id":789595511,"url":"https://api.github.com/repos/DxCx/graphql-rxjs/labels/awaiting%20response","name":"awaiting response","color":"1d76db","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-12-04T22:07:48Z","updated_at":"2018-02-17T15:40:49Z","closed_at":"2018-02-17T15:40:49Z","author_association":"NONE","body":"I'm trying to create a custom Apollo Link to use with Apollo Client. However, I'm running into an issue that I believe has to do with the differences between RxJS and zen-observable (used by apollo). Here's my Apollo Link:\r\n\r\n```\r\nimport { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link'\r\nimport { graphqlRx } from 'graphql-rxjs'\r\nimport { print } from 'graphql/language/printer'\r\n\r\nexport class LocalLink extends ApolloLink {\r\n  constructor({ schema, rootValue, context }) {\r\n    super()\r\n\r\n    this.schema = schema\r\n    this.rootValue = rootValue\r\n    this.context = context\r\n  }\r\n\r\n  request(operation) {\r\n    const request = {\r\n      ...operation,\r\n      query: print(operation.query)\r\n    }\r\n\r\n    return Observable.from(graphqlRx(\r\n      this.schema,\r\n      request.query,\r\n      this.rootValue,\r\n      this.context,\r\n      request.variables,\r\n      request.operationName\r\n    ))\r\n  }\r\n}\r\n\r\nexport default LocalLink\r\n```\r\n\r\nHowever, I'm getting the following error: \r\n\r\n```\r\nError: Network error: Observable.Observable.fromPromise(...).flatMap is not a function\r\n```"}}
{"actor":{"display_login":"smkhalsa"}}