From f8a64b37681c246f9c95ce63f6996a55ee1ce378 Mon Sep 17 00:00:00 2001 From: Gabriel Barros Date: Fri, 16 Apr 2021 12:24:38 -0300 Subject: [PATCH] Fix: missing '!' causes "Variable $launchIds of type [ID]! used in position expecting type [ID!]." error on book-trips.tsx --- docs/source/tutorial/local-state.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/tutorial/local-state.mdx b/docs/source/tutorial/local-state.mdx index d911cdff1..9f4bc5c1f 100644 --- a/docs/source/tutorial/local-state.mdx +++ b/docs/source/tutorial/local-state.mdx @@ -404,7 +404,7 @@ import * as GetCartItemsTypes from '../pages/__generated__/GetCartItems'; import * as BookTripsTypes from './__generated__/BookTrips'; export const BOOK_TRIPS = gql` - mutation BookTrips($launchIds: [ID]!) { + mutation BookTrips($launchIds: [ID!]!) { bookTrips(launchIds: $launchIds) { success message