lablup / lablup/backend.ai

Implement backend_ai_field() utility for Strawberry GraphQL

Open
#8,102 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
670
Forks
183
Avg merge
17h 7m
Merged PRs (30d)
358

Description

## Objective

Implement the core utility functions defined in BEP-1031 for integrating `BackendAIAPIMeta` with Strawberry GraphQL.

## Deliverables

- [ ] Implement `backend_ai_field()` wrapper function
- [ ] Implement `backend_ai_type()` decorator
- [ ] Implement `backend_ai_input()` decorator
- [ ] Implement metadata extraction utilities (`get_gql_field_meta()`, `collect_all_field_versions()`)
- [ ] Add unit tests
- [ ] Update `src/ai/backend/manager/api/gql/README.md` with usage examples

## Implementation Location

`src/ai/backend/manager/api/gql/utils.py`

## Related

- Epic: BA-3928
- BEP: BEP-1031 (GraphQL API Field Metadata Extension)
- Related BEP: BEP-1022 (Pydantic Field Metadata Annotation)

JIRA Issue: BA-3930

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.