# ProjectRegion

An object type of the [Archipad API](https://docs.archipad.dev/apis/archipad-graphql.md).

```graphql
type ProjectRegion
```

A region of a project: a lot or zone, such as an apartment, that plans and their issues belong to.

## Fields

- `createdAt`: [`DateTime!`](https://docs.archipad.dev/apis/archipad-graphql/types/DateTime.md) — When the region was created.
- `deleted`: `Boolean!` — Whether the region was deleted from the project.
- `deletedAt`: [`DateTime`](https://docs.archipad.dev/apis/archipad-graphql/types/DateTime.md) — When the region was deleted; null while it exists.
- `handedOver`: `Boolean!` — Whether the region was handed over to its buyers. Handing a region over also hands over its sub-regions that were not yet.
- `handedOverOn`: [`LocalDate`](https://docs.archipad.dev/apis/archipad-graphql/types/LocalDate.md) — Day the region was handed over to its buyers, which a user may move to another day; null while it is not handed over. The default phase of its new issues follows the calendar days elapsed since that day: see `Phase.validDurationAfterHandover`.
- `id`: `String!` — Identifier of the region.
- `issues`: [`IssueConnection!`](https://docs.archipad.dev/apis/archipad-graphql/types/IssueConnection.md) — Issues of the region and, unless told otherwise, of its sub-regions, by page of 50 unless `first` says otherwise.
   - `after`: `String` — Cursor of the last item already received, the `endCursor` of the previous page: returns the items after it. Pass the other arguments of the previous page unchanged, or the cursor is refused. Omitted: the first page.
   - `first`: `Int` = `50` — Number of items of the page, from 1 to 100.
   - `includeSubRegions`: `Boolean!` = `true` — Whether to add the issues of the regions below this one, such as the cellar or the parking lot of an apartment.
   - `phases`: `[String!]` — Keeps the issues of the phases with one of these `key`s, such as `[phase]:livraison`, `[phase]:30_jours`, `[phase]:gpa`, `[phase]:biennale` and `[phase]:decennale` for the issues raised after handover. Omitted or null: every phase; empty: none.
   - `status`: `String` — Keeps the issues whose `status` is exactly this state name.
- `members`: [`[RegionMember!]!`](https://docs.archipad.dev/apis/archipad-graphql/types/RegionMember.md) — People attached to the region, such as its buyers.
- `name`: `String!` — Name of the region; filter issues on it with the `region` argument of `Project.issues`.
- `parentId`: `String` — Identifier of the region this one belongs to, such as the building of an apartment; null for a top-level region.
- `project`: [`Project!`](https://docs.archipad.dev/apis/archipad-graphql/types/Project.md) — Project the region belongs to.
- `type`: [`RegionType`](https://docs.archipad.dev/apis/archipad-graphql/types/RegionType.md) — Type of the region; null when it has none.
- `updatedAt`: [`DateTime!`](https://docs.archipad.dev/apis/archipad-graphql/types/DateTime.md) — When the region was last changed.
