Get project

project(input: GetProjectInput, projectReference: ID): Project

Requires project.read.

Arguments

ArgumentTypeRequiredDescription
inputGetProjectInputNoLegacy selector by project UUID. Provide this or projectReference, not both.
projectReferenceIDNoProject UUID, slug or domain. Provide this or input, not both; an inaccessible project is not found.

Input fields

input

GetProjectInput

FieldTypeRequiredDescription
idID!YesProject UUID. Use project(projectReference:) for a slug or domain lookup.

Response

Returns Project. Open the type for its fields and nested types.

FieldType
invites[Invite]
idID!
slugString!
nameString!
descriptionString
typeString
systemManagedBoolean
isClaimedBoolean!

All fields of Project.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query Project($input: GetProjectInput, $projectReference: ID) {
  project(input: $input, projectReference: $projectReference) {
    id
    name
    slug
    createdAt
    updatedAt
  }
}
json
{
  "projectReference": "00000000-0000-4000-8000-000000000001"
}