# GraphqlDemo **Repository Path**: cnhtc/graphql-demo-g ## Basic Information - **Project Name**: GraphqlDemo - **Description**: Graphq测试demo - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-11 - **Last Updated**: 2022-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 工程简介 GraphQL简单测试 # 延伸阅读 查询方法: 1. 通过对象查询 ```javascript query getBookByTitle1 { getBookByTitle(bookInput: {title: "测试2", author: "王洋", isbn: "1234"}) { id title author isbn createdTime } } ``` 3. 通过参数查询 ```javascript { getBookById(id: 2) { id title author isbn createdTime updatedTime } getAllBooks { id title author isbn createdTime } } ``` 3. 增加对象 ```javascript mutation AddBook1 { addBook(bookInput: {title: "测试8", author: "王洋666", isbn: "123466678"}) { id title author isbn createdTime } } ```