GraphQL Schema to GraphQL.js Plugin
Babel plugin that uses a tagged template string with two expressions, the first being the string of the GraphQL Schema Language. The second being a decorator object to apply resolvers, descriptions and deprecations.
Tagged Template String
graphql`${"schema"} ${decorator}`
Example
const StarWarsTypes = graphql``;
Using https://github.com/graphql/express-graphql you can then easily setup your GraphQL endpoint.
var StarWarsSchema = query: StarWarsTypesQuery; const app = ;app; const server = app