Created
April 12, 2016 04:06
-
-
Save clayallsopp/c0efe3de4561ab917e02485593a79286 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 ResultType = new GraphQLObjectType({ | |
name : 'Result', | |
fields : { | |
text : { | |
type : new GraphQLNonNull(GraphQLString) | |
}, | |
id : { | |
type : new GraphQLNonNull(GraphQLID), | |
resolve: resolveWithInstrumentation((result) => { | |
return result.id; | |
}) | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment