const { ApolloServer, gql } = require('apollo-server-koa')
const typeDefs = gql`
type Query {
hello: String
}
`
上面的 gql+字符串模板,是个什么.
const { ApolloServer, gql } = require('apollo-server-koa')
const typeDefs = gql`
type Query {
hello: String
}
`
上面的 gql+字符串模板,是个什么.
1
wszgrcy Nov 25, 2019 via Android 标签模板
|
2
IsaacYoung Nov 25, 2019
函数调用
|
3
optional Nov 25, 2019
你再来个 console.log(typeDefs)就明白了
|
4
ipwx Nov 25, 2019 |
5
ayase252 Nov 25, 2019 tagged template literals
|