Skip to content

Compatibility with Mirage’s ORM layer? #18

@jgwhite

Description

@jgwhite

It seems like this library currently interfaces directly with Mirage’s DB layer, rather than the ORM layer. This causes some compatibility problems for projects that use the ORM layer, particularly in code paths such as filterByParent†.

Interfacing with the ORM layer would potentially simplify loading of associated records and handling of things like non-standard inverse field names.

Is there a reason not to interface with the ORM layer?

Would a PR that switches ember-cli-mirage-graphql over to the ORM layer be valuable?‡


filterByParent filters on someParentField.id on objects from the DB. When using the ORM layer, the relationship is stored in the DB as someParentFieldId.

‡ We’d probably have to take backwards compatibility into account for projects that don’t use the ORM layer yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions