0xPlaygrounds / 0xPlaygrounds/kg-node

feat(api): Add entity filters for space types

Abierto
#48 0 comentarios 0 reacciones 1 asignado Reclamado por @tourtourigny Ver en GitHub
enhancement
Lenguaje dominante
Rust
Estrellas
10
Forks
5
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

### 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"]
})
}
}
```

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
graphql, rust
Área
api, backend
Tipo de issue
Nueva funcionalidad
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Estancado
Claridad
Bien especificado
Aptitud para principiantes
55/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.