type Query { hello: String users: [User!]! } type User { name: String } Query: { hello: () => { return 'Hello world!' }, users(parent, args, context) { return [{ name: 'Nextjs' }] } }
请求参数:
返回结果:
获取数据