← All product updates

Anonymize Supergraphs and Operations with Hive Router

Kamil Kisiela
Kamil Kisiela

Hive Router v0.3.8 adds an anonymize command, so you can share a supergraph and its operations, in a bug report or with support, without revealing your schema.

hive_router anonymize keygen > anon.key
hive_router anonymize supergraph --key-file anon.key supergraph.graphql > anonymous.graphql
hive_router anonymize operation --key-file anon.key operation.graphql > anonymous-operation.graphql

Every type, field, argument, enum value, subgraph name, string and number is replaced with a hash, and descriptions are removed. The output is still a valid supergraph that the router plans the same way, just with names like T_3f9a… and f_81c2… instead of User and email.