Skip to content

Releases: thomasheyenbrock/remix-graphql

v0.2.1

07 Feb 13:42
Compare
Choose a tag to compare

Breaking changes

When trying to import from remix-graphql, the library will now throw an error. Using the default import might break the browser bundle because remix-graphql only works on the server. To fix this, import from remix-graphql/index.server.

Migration guide

Make sure that all imports from remix-graphql look like this:

- import { ... } from "remix-graphql";
+ import { ... } from "remix-graphql/index.server";

v0.1.3

29 Jan 17:03
f93ce11
Compare
Choose a tag to compare

New features

  • There's a new function sendGraphQLRequest. It can be used to send GraphQL requests to a remote API from a loader or action function. Like processGraphQLRequest, it automatically derived variables from params and form data.
  • There's a new example app that shows how to use sendGraphQLRequest with the GitHub GraphQL API.

Other improvements

  • There was a duplicate link in the README that was removed.

v0.1.2

10 Jan 12:54
Compare
Choose a tag to compare

New features

  • The new function processRequestWithGraphQL allows you to handle loader and action requests using GraphQL with ease.
  • All exported functions now allow passing a context object which will be included in the execution context.

Other improvements

  • There is a new section in the README about how to automatically generate types for the result of GraphQL operations
  • The whole jokes-tutorial example was rewritten to include a GraphQL API that handles authentication and the loading, creation, and deletion of jokes, and it now uses processRequestWithGraphQL from remix-graphql in all loader and action functions.

v0.1.0

10 Jan 12:02
Compare
Choose a tag to compare

Breaking changes

  • Avoid breaking the browser bundle by importing from remix-graphql/index.server instead of remix-graphql

Migration guide

Update all imports from remix-graphql like this:

- import { ... } from "remix-graphql";
+ import { ... } from "remix-graphql/index.server";

v0.0.1

10 Jan 11:59
Compare
Choose a tag to compare

Initial release 🥳

New features

  • Added function createLoaderFunction that handles GraphQL requests for GET requests to a resource route
  • Added function createActionFunction that handles GraphQL requests for POST requests to a resource route