You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constRestaurantCityFragment=gql`fragment CityFragment on City { id name region }`exportconstFetchRestaurants=gql` query FetchRestaurants { Restaurants { id city{ ...CityFragment } } }${CityFragment}`
and CitySchema.ts:
constCityFragment=gql` fragment CityFragment on City { id name slug }`exportconstFetchCities=gql` query FetchCities { Cities { ...CityFragment } }${CityFragment}`
What one would expect is a warning or a error about naming conflicts in schema that will lead to unpredictable behavior.
But codegen finishes with success and no indication of an error .
Commands run:
apollo client:codegen --target=typescript --outputFlat src/types/api.d.ts
Version:
apollo: 2.21.0
The text was updated successfully, but these errors were encountered:
For example, you have RestaurantSchema.ts:
and CitySchema.ts:
What one would expect is a warning or a error about naming conflicts in schema that will lead to unpredictable behavior.
But codegen finishes with success and no indication of an error .
Commands run:
Version:
apollo: 2.21.0
The text was updated successfully, but these errors were encountered: