Created
October 5, 2017 00:34
-
-
Save samueljoli/94faeb165190d437ae7665cdc4b6d575 to your computer and use it in GitHub Desktop.
Joi2GQL example 2
This file contains hidden or 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 Film = Joi2GQL.transmuteType(joiSchema, config); | |
const graphqlSchema = { | |
query: { | |
film: Film | |
}, | |
mutation: { | |
update: Film, | |
delete: Film | |
}, | |
subscription: { | |
film: Film | |
} | |
}; | |
const GraphQLSchema = Joi2GQL.transmuteSchema(graphqlSchema); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment