0xPlaygrounds / 0xPlaygrounds/kg-node
feat(api): Add `Image` type for built-in cover property
- 主要语言
- Rust
- 星标
- 10
- 派生
- 5
- PR 合并指标
- 30 天内没有已合并 PR
描述
## Description
Add a dedicated `Image` GraphQL type with additional dimension information for the built-in `cover` property.
## Implementation
```graphql
type Image {
url: String!
width: Int
height: Int
fileType: String
}
type Entity {
# (Change) cover from `String` to `Image`
cover: Image
# ...other attribute
}
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
Find the GraphQL schema definitions in the codebase, likely in a file like `schema.graphql` or within Rust modules using a GraphQL library. Locate the `Entity` type and change its `cover` field from `String` to the new `Image` type as defined. Ensure the `Image` type is added to the schema with the specified fields. Test the change by running any existing GraphQL tests or queries to verify the new type works.
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- graphql, rust
- 领域
- api
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100