Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Commit

Permalink
feat(graphiql-fetcher): added note regarding subscription detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Urigo committed Mar 26, 2017
1 parent 0e97395 commit 5fdf14a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/graphiql-fetcher.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { SubscriptionClient } from './client';

const hasSubscriptionOperation = (graphQlParams: any) => {
// We are using this method instead using GraphQL parser, because GraphiQL
// does not expose GraphQL, and we don't want to load it as dependency in the transport,
// in order to reduce it's client-side package size.
// Also, GraphQL does not have any CDN version that can be loaded directly.
const query = graphQlParams.query;
const operationName = graphQlParams.operationName;

Expand Down

0 comments on commit 5fdf14a

Please sign in to comment.