Utility library for integrating GraphQL with Remix apps. Version 0.2.1 provides functions to handle loader and action requests using local GraphQL schemas/resolvers or remote APIs, and to set up GraphQL resource routes. It ships TypeScript types and requires peer dependencies @remix-run/dev, @remix-run/react, @remix-run/serve, grapqhl^16.2, and remix. Key differentiators: server-only usage enforced via .server imports, support for schema-first and code-first schema definition, and future batching of queries from multiple loaders.
npm install remix-graphqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up a GraphQL resource route using createGraphQLAPI with a local schema and root value.
Import from 'remix-graphql/index.server' instead.
Use buildSchema or makeExecutableSchema to create the schema object.
Ensure imports are from 'remix-graphql/index.server' and that the file has .server extension.
Replace 'remix' with '@remix-run/dev' in package.json dependencies.
Change import to 'remix-graphql/index.server' and ensure the file using it has .server extension.
Use buildSchema or makeExecutableSchema to convert SDL to schema object.
Ensure you are importing 'remix-graphql/index.server' and that the file is named with .server extension.