did-graphql-scalars
v0.0.2
Published
DID GraphQL Scalars defines custom GraphQL scalars for DID.
Downloads
3
Readme
DID GraphQL Scalars
DID GraphQL Scalars defines custom GraphQL scalars for DID.
This library is influenced by GraphQL Scalars . Thank you for the awesome library.
Getting started
1. Installation
$ npm install --save-dev did-graphql-scalars
2. SDL type definitions
scalar ScalarName
import { typeDefs as didScalarsTypeDefs } from 'did-graphql-scalars';
const typeDefs = [
...didScalarsTypeDefs,
// other typeDefs
];
3. Adding Resolvers
import { resolvers as didScalarResolvers } from 'did-graphql-scalars';
const resolvers = [
...didScalarResolvers,
// other resolvers
];