# analyse **Repository Path**: joeslee/analyse ## Basic Information - **Project Name**: analyse - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-06-27 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### 启动 mongo-express `npm run mongo` 为数据库添加用户并赋予权限 ```bash db.createUser({user: "lishiheng",pwd: "lishiheng",roles: [ { role: "dbAdmin", db: "stocks" } ]}) db.grantRolesToUser("lishiheng",[{role:"dbAdmin", db:"stocks"}]) ``` ### 使用graphql客户端 http://localhost:3000/graphql 查询 schema ```graphql { __schema { types { name description } } } ``` 查询股票下所有字段元数据 ```graphql { __type(name: "Stock") { name fields { name description type { name kind ofType { name kind } } } } } ``` 搜索股票列表 ```graphql { search(area: "上海", industry: "园区开发") { code name industry area pe outstanding totals totalAssets liquidAssets fixedAssets reserved reservedPerShare esp bvps pb timeToMarket undp perundp rev profit gpr npr holders } } ```