graphql-sock - Semantic Nullability Converter
JSON →GraphQL SOCK converts SDL files that use semantic nullability (via @semanticNonNull directive or GraphQLSemanticNonNull wrapper) into traditional SDL for legacy tooling. Version 1.0.1 is the current stable release. It supports two modes: 'semantic-to-nullable' strips semantic non-null markers, while 'semantic-to-strict' replaces them with strict non-null. The library works as a CLI tool or programmatic API. Requires graphql 15.x, 16.x, or 17.x as a peer dependency. Differentiates from similar tools by supporting both the directive and the experimental asterisk syntax, with fine-grained level control for nested types.
Resources
packagegraphql-sock ↗