The library called apollo-codegen allows one to create types on the client for a graphQL schema. However it expect the gql
queries to be put in a .graphql
file.
My question is: how can I use the query when they are in a .graphql
file ?
I was previously doing this in my .ts
files
const ssQuery = gql`
subscription suppliers {
suppliers {
id,
name
}
}
`;