graphql-tag.macro库的BabelMacro。
它能做什么它内联使用graphql-tag解析GraphQL查询的结果。
转换为:constquery=gql`query{hello{world}}`;对此:constquery={'kind':'Document','definitions':[{'kind':'OperationDefinition','operation':'query','variableDefinitions':[],'directives':[],'selectionSet':{'kind':'SelectionSet','selections':[{'kind':'Field','alias':null,'name':{
1