Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mfix22 authored Oct 25, 2018
1 parent 3c4ec84 commit 645b86f
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,19 @@ and then add to your schema:

```javascript
const { Phone, UnixDate, CreditCard, State, ZipCode, DriversLicense } = require('gnt')

{
name: 'Query',
fields: {
phone: { type: Phone },
date: { type: UnixDate },
card: { type: CreditCard },
state: { type: State }
zipcode: { type: ZipCode },
license: { type: DriversLicense }
}
}
const { makeExecutableSchema } = require('graphql-tools');

makeExecutableSchema({
typeDefs: schemaString,
resolvers: {
Phone,
UnixDate,
CreditCard,
USState: State,
ZipCode,
DriversLicense
}
});
```

## Examples
Expand Down

0 comments on commit 645b86f

Please sign in to comment.