GraphQL Schema to handle mixed types

后端 未结 3 1082
遥遥无期
遥遥无期 2021-02-09 20:52

I\'ve recently started to research the possibility of using GraphQL for requesting dynamic data configurations. The very first thing that jumps out at me is the strongly-typed c

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-09 21:28

    I think it's possible to make a custom/generic type that will fit the need. So that way it's still a strong typed array but the type will be flexable enough to set what you need.

    Here is an example with custom types: https://github.com/stylesuxx/graphql-custom-types

提交回复
热议问题