graphqlphonetype
v1.0.0
Published
Normalized phone number type for GraphQL
Readme
graphqlphonetype
Usage
$ npm install --save graphqlphonetypeand then add to your schema:
const PhoneNumber = require('graphqlphonetype')
...
args: {
phoneNumber: { type: new GraphQLNonNull(PhoneNumber) }
}Example
Input: '(817) 569-8900'
Output: '+18175698900'