0xPlaygrounds / 0xPlaygrounds/kg-node
feat(api): Add entity filters for space types
- 主要语言
- 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