buildSchema和GraphQLSchema之间的差异
buildSchema ? GraphQLSchema ?
??通过不同版本中的示例,来了解其中的差异:
buildSchema
const {
graphql, buildSchema } = require('graphql');
const schema = buildSchema(`
type Query {
hello: String
}
`);
const root = {
hello: () => 'Hello world!' };
graphql(schema, '{ hello }', root).then((response) => {
console.log</