Thanks to visit codestin.com
Credit goes to github.com

Skip to content

@searchBy Polymorphic relationship support #221

@Orrison

Description

@Orrison

Hello! Thank you so much for the development and maintenance of this package. It works great and the care you put into it is deeply appreciated.

I wanted to ask if there is currently support for querying of Polymorphic relationships with @searchBy through some syntax we are not finding apparent.
When we first adopted this package we couldn't work out how to get a MorphTo relationship to work for example, so we created a custom directive for this to work but it seems recent updates may have caused issues.

Here is an example of an entity with a MorphTo relationship: https://github.com/canyongbs/advisingapp/blob/main/app-modules/alert/graphql/alert.graphql

And our custom directive: https://github.com/canyongbs/advisingapp/blob/main/app/GraphQL/Directives/MorphToRelationDirective.php

Any guidance you can provide on how to best make the queries work would be very appreciated.

Thank you so much!

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions