Is it possible to use inheritance with GraphQL input types?
Is it possible to use inheritance with GraphQL input types?
No, it is not possible to use inheritance with GraphQL input types according to the GraphQL specification. The GraphQL type system does not support any form of inheritance for input types. This means that input types cannot implement interfaces or extend other input types in the same way that object types can. The specification is intentionally constrained to maintain simplicity and avoid complexity in schema design.
However, there are some workarounds and alternative approaches that developers can use to achieve similar functionality:
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.