Created
April 10, 2016 03:56
-
-
Save clayallsopp/73755e1d5f4e61c63d166bf0d96a3c0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const UserType = new GraphQLObjectType({ | |
name : 'User', | |
interfaces: [SearchableType], | |
fields : { | |
// ... | |
}, | |
isTypeOf: data => !!data.username; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment