0xPlaygrounds / 0xPlaygrounds/kg-node

feat(api): Add entity filters for space types

オープン
#48 コメント 0 件 リアクション 0 件 担当者 1 名 @tourtourigny が担当を希望しています GitHub で見る
enhancement
主要言語
Rust
スター
10
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

説明

### Description
Add a `where` filter to the `types` field of the `Space` GraphQL type.

**Schema**
```graphql
type SchemaType {
"""Types of the entity (which are entities themselves)"""
types(
where: EntityFilter, # <--------- NEW
first: Int! = 100,
skip: Int! = 0,
strict: Boolean! = true,
): [SchemaType!]!
}
```

**Example query**
```graphql
query {
space(id: "25omwWh6HYgeRQKCaSpVpa") {
# Select the types in the space that are themselves "Property" type
types(where: {
typesContains: ["GscJ2GELQjmLoaVrYyR3xm"]
})
}
}
```

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

The issue is about adding a `where` filter to the `types` field in the GraphQL schema for the `Space` type. Look for the GraphQL schema definition in the codebase, likely in a file like `schema.graphql` or within Rust modules using a GraphQL library (e.g., Juniper). Find the `SchemaType` definition and the resolver for the `types` field. Implement the filter logic, ensuring it integrates with existing entity filtering. Test with the provided example query to verify the filter works correctly.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
graphql, rust
領域
api, backend
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。