All Projects → prisma-labs → Graphql Import Loader

prisma-labs / Graphql Import Loader

Licence: mit
Webpack loader for `graphql-import`

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Graphql Import Loader

Stylefmt Loader
Webpack-loader. Fixes stylelint issues automatically while bundling with Webpack.
Stars: ✭ 24 (-71.43%)
Mutual labels:  webpack, webpack-loader
Tkframework
react + relay + redux + saga + graphql + webpack
Stars: ✭ 83 (-1.19%)
Mutual labels:  graphql, webpack
Flow Bin Loader
webpack loader for Flow
Stars: ✭ 11 (-86.9%)
Mutual labels:  webpack, webpack-loader
Inline Style Loader
inline style loader for webpack
Stars: ✭ 16 (-80.95%)
Mutual labels:  webpack, webpack-loader
Ghosttheme Stockholm
👻 📝 ✨ Clean Ghost theme with advanced features & customization.
Stars: ✭ 67 (-20.24%)
Mutual labels:  graphql, webpack
Node Addon Loader
A loader for node native addons
Stars: ✭ 17 (-79.76%)
Mutual labels:  webpack, webpack-loader
Svgr
Transform SVGs into React components 🦁
Stars: ✭ 8,263 (+9736.9%)
Mutual labels:  webpack, webpack-loader
Comlink Loader
Webpack loader to offload modules to Worker threads seamlessly using Comlink.
Stars: ✭ 535 (+536.9%)
Mutual labels:  webpack, webpack-loader
Rpg Boilerplate
Relay (React), Postgres, and Graphile (GraphQL): A Modern Frontend and API Boilerplate
Stars: ✭ 62 (-26.19%)
Mutual labels:  graphql, webpack
Ng Router Loader
Webpack loader for NgModule lazy loading using the angular router
Stars: ✭ 47 (-44.05%)
Mutual labels:  webpack, webpack-loader
React App
Create React App with server-side code support
Stars: ✭ 614 (+630.95%)
Mutual labels:  graphql, webpack
Graphql Persisted Document Loader
Webpack loader that adds a documentId to a compiled graphql document, which can be used when persisting/retrieving documents
Stars: ✭ 74 (-11.9%)
Mutual labels:  graphql, webpack-loader
Wasm Loader
✨ WASM webpack loader
Stars: ✭ 604 (+619.05%)
Mutual labels:  webpack, webpack-loader
Nunjucks Isomorphic Loader
Nunjucks loader for webpack, supporting both javascript templating and generating static HTML files through the HtmlWebpackPlugin.
Stars: ✭ 17 (-79.76%)
Mutual labels:  webpack, webpack-loader
Kretes
A Programming Environment for TypeScript & Node.js built on top of VS Code
Stars: ✭ 570 (+578.57%)
Mutual labels:  graphql, webpack
Thread Loader
Runs the following loaders in a worker pool
Stars: ✭ 945 (+1025%)
Mutual labels:  webpack, webpack-loader
React Starter Kit
React Starter Kit — front-end starter kit using React, Relay, GraphQL, and JAM stack architecture
Stars: ✭ 21,060 (+24971.43%)
Mutual labels:  graphql, webpack
Cookiecutter Django Vue
Cookiecutter Django Vue is a template for Django-Vue projects.
Stars: ✭ 462 (+450%)
Mutual labels:  graphql, webpack
Bootstrap Loader
Load Bootstrap styles and scripts in your Webpack bundle
Stars: ✭ 1,038 (+1135.71%)
Mutual labels:  webpack, webpack-loader
Sketch Loader
Webpack loader for Sketch (+43) files
Stars: ✭ 69 (-17.86%)
Mutual labels:  webpack, webpack-loader

graphql-import-loader

CircleCI npm version

Webpack loader for graphql-import

Install

yarn add --dev graphql-import-loader

Usage

Resolve GraphQL file import statements as a string. See the tests for more details

# import { A } from 'src/schema/a.graphql'
# import { B } from 'src/schema/b.graphql'
# import { C, D } from 'src/schema/cd.graphql'

type Complex  {
  id: ID!
  a: A!
  b: B!
  c: C!
  d: D!
}
import typeDefs from './schema.graphql'
// webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        exclude: /node_modules/,
        test: /\.graphql$/,
        use: [{ loader: 'graphql-import-loader' }]
      }
    ]
  }
}

Examples

Simple Server:

import { GraphQLServer } from 'graphql-yoga'
import resolvers from './resolvers'
import typeDefs from './schema.graphql'

const server = new GraphQLServer({ typeDefs, resolvers })
server.start(() => console.log('Server running on :4000'))

Advanced:

serverless-prisma: Serverless starter kit using Prisma (early-stages)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].