Using GraphQL Fragment on multiple types

后端 未结 2 560
迷失自我
迷失自我 2021-01-07 18:42

If I have a set of field that is common to multiple types in my GraphQL schema, is there a way to do something like this?

type Address {
  line1: String
  ci         


        
2条回答
  •  悲&欢浪女
    2021-01-07 19:17

    Don't know if it was not available at this question time, but I guess interfaces should fit your needs

提交回复
热议问题