rollup-plugin-graphql-tag
Import and preprocess graphql documents using graphql-tag
with rollup
.
# src/schema.graphqltype Book { title: String author: Author} type Author { name: String books: [Book]} type Query { getBooks: [Book] getAuthors: [Author]}
// src/index.js;;; const server = typeDefs resolvers ;
; input: 'src/index.js' output: 'dist/index.js' plugins: ;