graphql-tag icon indicating copy to clipboard operation
graphql-tag copied to clipboard

feat: add typename insertion functionality to graphql-tag

Open dmhalejr opened this issue 6 years ago • 1 comments
trafficstars

Aims to close https://github.com/apollographql/graphql-tag/issues/71

Leveraging the muscle of addTypenameToDocument from the apollo-utilities package to add ability to add __typenames when enabled.

Parameter defined was set as enableTypenameInsertion and disableTypenameInsertion appropriately

The one oddity from my quick feature creation was that the test/graphql-v0.11.js which I didn't touch changed ever so slightly where undefined and null became null and []

I'll change it back but my npm test yielded the same testing compatibility fails/passes as my fresh master fork.

Thanks for all you do! Let me know what else I can do to meet guidelines.

dmhalejr avatar Jul 08 '19 21:07 dmhalejr

@dmhalejr: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

apollo-cla avatar Jul 08 '19 21:07 apollo-cla