graphql-add-fields
v1.0.2
Published
Automatically adds `__typename` and `id` fields to graphql queries if missing.
Downloads
3
Readme
graphql-add-fields
Automatically adds __typename
and id
fields to graphql queries if missing.
Used when nomalizing a graphql response for caching/storage.
Function extracted from graphql-normalizr