Skip to content

Mirage models and relationships #26

@skarger

Description

@skarger

I'm using the currently released ember-cli-mirage-graphql version, 0.1.1.

This video guide about ember-cli-mirage-graphql uses Mirage factories, and so does this repo's dummy app.

Mirage also provides the concepts of models and relationships. Specifically, you can define belongsTo and hasMany relationships between models.

  1. Does this package work with those Mirage features?
  2. If so, would it be possible to add an example, maybe to the dummy app, of how to handle a GraphQL query that loads associated models from the Mirage DB?

I tried using Mirage models in my app, but when handling the GraphQL query it seemed to have trouble loading the related models. I'm not sure if I was lacking some necessary configuration or it's just not supported.

By the way, this may be tangentially related to #18.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions