0xPlaygrounds / 0xPlaygrounds/kg-node
feat(api): Add `Image` type for built-in cover property
- Vorherrschende Sprache
- Rust
- Sterne
- 10
- Forks
- 5
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## 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
}
```
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- graphql, rust
- Bereich
- api
- Issue-Typ
- Feature
- Schwierigkeit
- 2/5
- Geschätzter Aufwand
- 1-3 Stunden
- Aktivitätsstatus
- Veraltet
- Klarheit
- Klar beschrieben
- Anfängerfreundlichkeit
- 65/100