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.
npm install graphql-sockNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Converts a GraphQL schema with semantic nullability to strict non-null markers using the programmatic API.
Use import syntax or switch to dynamic import().
Install a compatible version of graphql: npm install graphql@^16.0.0
Migrate to the GraphQLSemanticNonNull wrapper type when available in your GraphQL.js version.
Install graphql@canary-pr-4192 or convert asterisk syntax to @semanticNonNull directive before using sock.
Use printSchema(result) from the 'graphql' package to obtain the SDL string.
Replace require with import or use dynamic import().
Run npm install graphql@^16.0.0
Check GraphQL version; ensure it's 15, 16, or 17.
Install graphql@canary-pr-4192 or replace * with @semanticNonNull directive.
No dependency data recorded yet.