Magidoc

getProjects
Query

Get projects that the user has access to with pagination, filtering and sorting

Access: Requires workspace access

Parameters:

  • workspaceId: The ID of the workspace
  • first: Number of projects to return (default: pagination limit)
  • last: Optional number of projects to return from the end
  • before: Optional cursor for pagination
  • after: Optional cursor for pagination
  • searchParams: Optional search parameters
  • specificIds: Optional array of specific project IDs to include
  • excludedIds: Optional array of project IDs to exclude
  • includeTemplates: Optional flag to include template projects
  • archived: Optional flag to include archived projects (default: false)
  • templatesOnly: Optional flag to return only template projects (default: false)
  • includePublic: Optional flag to include public projects (default: true)
  • includePrivate: Optional flag to include private projects (default: false)
  • includeReadOnly: Optional flag to include read-only projects
  • includeArchived: Optional flag to include archived projects (default: false)
  • rootProjectId: Optional root project ID to filter by
  • userId: Optional user ID to filter projects by

Returns: ProjectConnection with edges and page info

Arguments

#

workspaceId

ID !
Non-null

first = 20

last

before

after

searchParams

specificIds

[ ID !]

excludedIds

[ ID !]

includeTemplates

archived

templatesOnly

includePublic = true

includePrivate

includeReadOnly

includeArchived

rootProjectId

userId

Response

#

Returns ProjectConnection !.

Example

#

    
  

3

    
  

3

    
  

3