Replies: 2 comments
-
I explored this slightly. I think this is not possible at this moment. This is how interfaces are implemented in core/src/GraphQl/Type/TypeBuilder.php Line 112 in cf65af3 @alanpoulain please confirm. If I'm right do you plan to support interfaces for GraphQl? I think this way data model in GraphQl schema will reflect model in php very well. At this moment I have some troubles with this. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Beta Was this translation helpful? Give feedback.
-
GraphQL allows to declare abstract types called interfaces (https://graphql.org/learn/schema/#interfaces). On the backed it's mean we can create abstract models.
What is a proper way I should configure my models that API Platform builds a schema with interfaces?
Beta Was this translation helpful? Give feedback.
All reactions