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