You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
I wanted to ask if there is currently support for querying of Polymorphic relationships with @searchby through some syntax we are not finding apparent.
Unfortunately, there is no support. It is also not on my todo list (I thought about it, but have no idea how to assign models class names in graphql).
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.
What version are you using? Seems below v6? The v6 introduced new syntax. You can restore old as described in upgrade guide1.
There were also few interface changes (moving/renames), probably you just need update you code accordingly. Please refer to upgrade guide and also you can search refactor(graphql) in commits.
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!
The text was updated successfully, but these errors were encountered: