Created
July 7, 2017 14:27
-
-
Save a7v8x/525a98faedbf82a1a5ee2d5d7af8a426 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
import { | |
GraphQLSchema, | |
GraphQLObjectType, | |
} from 'graphql'; | |
import { | |
userQueries, | |
userMutations, | |
} from './users/users'; | |
export default new GraphQLSchema({ | |
query: new GraphQLObjectType({ | |
name: 'Query', | |
fields: () => ({ | |
...userQueries, | |
}), | |
}), | |
mutation: new GraphQLObjectType({ | |
name: 'Mutation', | |
fields: () => ({ | |
...userMutations, | |
}), | |
}), | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment