3 ms·
I found out about this feature while using GraphQL. When going through Apollo's docs I saw a bunch of gql`templateString`, which is used for defining typeDefs.
by fersho311 8y ago
I found out about this feature while using GraphQL. When going through Apollo's docs I saw a bunch of gql`templateString`, which is used for defining typeDefs. The first time I saw that, I was so confused. Personally, I think it would be more clear if they just did gql(templateString)
- burlesona 8y agoUsing the parenthesis actually gives different behavior. That’s, I suppose, why this syntax exists at all.