As you know in appollo server you can define the server's schema by passing a string into gql.
const typeDefs = gql`
type Query {
getBtcRates: [BtcRate]
}
`'
But what is gql? Is it a function or a method?
It's definition
export const gql: (
template: TemplateStringsArray | string,
...substitutions: any[]
) => DocumentNode = gqlTag;
To me it looks more like a function, but this syntax is unknown to me, so wonder what exactly it is and why this is written this way.