Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 394 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 394 Bytes

apollo-link-omit-typename

Apollo Link that omits typename fields from operation variables

Installation

yarn add apollo-link-omit-typename

Usage

import { ApolloLink, HttpLink } from '@apollo/client';
import OmitTypenameLink from 'apollo-link-omit-typename';

const link = ApolloLink.from([
  new OmitTypenameLink(),
  new HttpLink({
    uri: 'uri',
  }),
]);