MCPcopy
hub / github.com/graphql-hive/graphql-scalars

github.com/graphql-hive/graphql-scalars @v1.25.0 sqlite

repository ↗ · DeepWiki ↗ · release v1.25.0 ↗
400 symbols 1,183 edges 178 files 2 documented · 0%
README

scalar

npm version Discord Chat

A library of custom GraphQL scalar types for creating precise type-safe GraphQL schemas.

Getting Started

Please refer to our website for all the documentation related to GraphQL Scalars

Contributions

Contributions, issues and feature requests are very welcome. If you are using this package and fixed a bug for yourself, please consider submitting a PR!

And if this is your first time contributing to this project, please do read our Contributor Workflow Guide before you get started off.

Code of Conduct

Help us keep GraphQL Scalars open and inclusive. Please read and follow our Code of Conduct as adopted from Contributor Covenant

License

Released under the MIT license.

Thanks

This library was originally published as @okgrow/graphql-scalars. It was created and maintained by the company ok-grow. We, The Guild, took over the maintenance of that library later on.

We also like to say thank you to @adriano-di-giovanni for being extremely generous and giving us the graphql-scalars name on npm which was previously owned by his own library.

And thanks to excitement-engineer for graphql-iso-date, stems for graphql-bigint, taion for graphql-type-json, langpavel for GraphQLTimestamp.js, vespertilian for Duration scalar, maxwellsmart84 for NonEmptyString scalar

Extension points exported contracts — how you extend this code

GraphQLErrorOptions (Interface)
(no doc)
src/error.ts
RegularExpressionOptions (Interface)
(no doc)
src/RegularExpression.ts
Validator (Interface)
(no doc)
src/scalars/AccountNumber.ts
Specification (Interface)
(no doc)
src/scalars/IBAN.ts
CountryStructure (Interface)
(no doc)
src/scalars/IBAN.ts
Validator (Interface)
(no doc)
src/scalars/RoutingNumber.ts

Core symbols most depended-on inside this repo

serialize
called by 385
src/RegularExpression.ts
parseLiteral
called by 344
src/RegularExpression.ts
parseValue
called by 318
src/RegularExpression.ts
createGraphQLError
called by 224
src/error.ts
processValue
called by 24
src/scalars/utilities.ts
randomVal
called by 13
src/mocks.ts
generateBBoxType
called by 9
src/scalars/GeoJSON/codegenScalarType.ts
validateTime
called by 6
src/scalars/iso-date/validator.ts

Shape

Function 362
Method 26
Interface 6
Class 4
Enum 2

Languages

TypeScript100%

Modules by API surface

src/mocks.ts67 symbols
scripts/setup-scalar.js24 symbols
src/scalars/GeoJSON/validators.ts12 symbols
src/scalars/GeoJSON/codegenScalarType.ts12 symbols
src/scalars/utilities.ts10 symbols
src/scalars/IBAN.ts10 symbols
src/scalars/RoutingNumber.ts9 symbols
src/scalars/ssn/SE.ts8 symbols
src/scalars/iso-date/formatter.ts7 symbols
src/RegularExpression.ts7 symbols
src/scalars/iso-date/validator.ts6 symbols
src/scalars/BigInt.ts6 symbols

Dependencies from manifests, versioned

@babel/core7.28.4 · 1×
@babel/preset-env7.28.3 · 1×
@babel/preset-typescript7.27.1 · 1×
@changesets/changelog-github0.5.1 · 1×
@changesets/cli2.29.7 · 1×
@graphql-codegen/cli6.0.0 · 1×
@graphql-codegen/typescript5.0.2 · 1×
@graphql-tools/merge9.1.1 · 1×
@graphql-tools/schema10.0.25 · 1×
@theguild/prettier-config3.0.1 · 1×
@theguild/tailwind-config0.6.4 · 1×

For agents

$ claude mcp add graphql-scalars \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact