Trying to understand the connection between the "..." notation in React and GraphQL. Are they
1) Using the same general Javascript syntax? If so, what does it mean - since my understanding was specific to React. (I thought it meant pass the properties inherited from the parent's to a child."
2) Unrelated syntax that happen to be the same in React and GraphQL.
I saw it used in GraphQL in this example from the ApolloClient tutorial
tutorial: const PokemonQuery = gql` query PokemonQuery($id: ID!) {
Pokemon(id: $id) {
... PokemonCardPokemon
} } ${PokemonCard.fragments.pokemon}
In this example, PokemonCardPokemon is a GraphQL fragment. The tutorial says, "Note that we select the fragment in the query using the ... syntax, and that we additionally include the fragment after the query with ${PokemonCard.fragments.pokemon}."