개발/프론트엔드

5. GraphQL Interface

개발자_무형 2019. 12. 26. 15:40
반응형

What is an Interface

An Interface is an abstract type that specifies fields that should be implemented in similar object types. When another type implements the interface, it needs to include all the fields from the interface and may add its own fields. It acts like a virtual function in C++.

useful link: https://graphqlmastery.com/blog/graphql-interfaces-and-unions-how-to-design-graphql-schema

반응형