Skip to content

feat(api): Add entity filters for space types #48

@cvauclair

Description

@cvauclair

Description

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

Schema

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

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions