graphql-string-loader
v1.0.1
Published
Webpack loader that imports GraphQL queries as strings.
Downloads
45
Maintainers
Readme
graphql-string-loader
Webpack loader that imports GraphQL queries as strings.
Works similar to graphql-tag/loader from Apollo except this imports the queries as strings instead of GraphQL AST.
Example
#import "./ContentDetailsFragment.graphql"
query Content($id: Int!) {
content(id: $id) {
id
title
...ContentDetailsFragment
}
}