0xPlaygrounds / 0xPlaygrounds/kg-node

feat(api): Add `Image` type for built-in cover property

Open Beginner friendly
#33 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
10
Forks
5
PR merge metrics
No merged PRs in 30d

Description

## 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
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

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.

Written by the indexing model from the issue text.

Assessment

Tech stack
graphql, rust
Domain
api
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.