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