1.0.1 • Published 4 years ago

graphql-string-loader v1.0.1

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

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
    }
}