graphql
graphql copied to clipboard
A library for handling GraphQL requests with Mirage JS
I added a field and query to the tests that reproduces the issue I've been facing I fixed my original issue by adding a `isList` argument to `resolveInterface()`, similar to...
When a schema defines a list using an interface, it looks like `@miragejs/graphql` fails to build the field for the list ```graphql interface ItemRead { authors: [String!]! id: ID! title:...
This is related to a comment made on https://github.com/miragejs/graphql/issues/52 that was out of context for the issue where it was added to. We've defined a mutation to work with basic...
I'm getting a bunch of errors when I try to use queries with variables. ```ts // app/mirage/server.js import { createServer } from "miragejs" import { createGraphQLHandler } from "@miragejs/graphql" import...
Hey, @jneurock I realized that is missing an example of how to call this guy. In that case where and when the `getPerson` is called? I think we need a...
To maintain compatibility with the design of `ember-cli-mirage-graphql` (the Ember-specific library that came before this), Mirage GraphQL automatically filters records by variables when auto-resolving. I think this behavior is probably...
Having an issue returning sub fields.. Not sure If there is something I need to add to resolvers, but have attempted that as well with no luck. Name returns fine,...
Any suggestions on how to handle mocking Subscriptions? I'm thinking through a way to do it using the `graphql-subscriptions` in tandem with `mock-socket` libraries, but it might be a little...
How to make this relationship? https://miragejs.com/repl/v2/aed73f33fc HELPPP PLEASEEE
Given a schema with interfaces: ```graphql type Account { id: ID profile: ProfileData! } interface Profile { email: String phone: String } type ProfileData { personal: PersonalProfile business: BusinessProfile }...