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
This could be placed in the "Patterns" section of the doc but curious if there is best practices or potential future support for extending an object (which would create a new one) instead of using interfaces. My thinking is:
As a result, the UserWithAddressObject would interface with the previous one. On a graphql schema, these are 2 separate objects. This is a bit different from graphql interfaces which tend to have the common fields on the interface and have objects extend. This can be achieved with interfaces with:
Patterns like this will be easier to build in v4, which is in progress, but I haven't had much time lately to work on it. V4 pushes all of the configs and field definitions into the refs, which makes it easier to add methods on refs that allow extending or mutating them.
There aren't any concrete plans for a feature like this, but making things more modular and extensible was part of the goal for v4
This could be placed in the "Patterns" section of the doc but curious if there is best practices or potential future support for extending an object (which would create a new one) instead of using interfaces. My thinking is:
As a result, the
UserWithAddressObject
would interface with the previous one. On a graphql schema, these are 2 separate objects. This is a bit different from graphql interfaces which tend to have the common fields on the interface and have objects extend. This can be achieved with interfaces with:The text was updated successfully, but these errors were encountered: