小编An *_*ife的帖子

grapql@16 放弃了对位置参数的长期弃用支持,请改为传递一个对象

    const { ApolloServer, gql } = require('apollo-server');
    
    // A schema is a collection of type definitions (hence "typeDefs")
    // that together define the "shape" of queries that are executed against
    // your data.
    const typeDefs = gql`
      # Comments in GraphQL strings (such as this one) start with the hash (#) symbol.
    
      # This "Book" type defines the queryable fields for every book in our data source.
      type Book {
        title: String
        author: String
      }
    
      # The "Query" type is …
Run Code Online (Sandbox Code Playgroud)

apollo graphql apollo-server

4
推荐指数
1
解决办法
4333
查看次数

标签 统计

apollo ×1

apollo-server ×1

graphql ×1