Multiple Queries/Mutation in Apollo 2.1

后端 未结 6 524
滥情空心
滥情空心 2021-02-05 12:10

I need some help using the new Query and Mutation component in Apollo 2.1, especially with multiple queries and mutations.

I have the following problems:

  1. I
6条回答
  •  后悔当初
    2021-02-05 12:48

    Best solution for this

    Simply nest graphql function

    export default graphql(addBookMutation)(graphql(getAuthorsQuery)(AddBook))

    You can refer to this

    Apollo concepts

提交回复
热议问题