Files
speckle-server/packages/frontend-2/lib/presentations/graphql/queries.ts
T
Gergő Jedlicska 85e127f690 Gergo/workspace scoping (#5546)
* fix(workspaces): project.workspace should be behind a token scope

* fix(workspace): add limited workspace resolver to projects

* Update FE

---------

Co-authored-by: Mike Tasset <mike.tasset@gmail.com>
2025-09-24 16:51:43 +02:00

41 lines
982 B
TypeScript

import { graphql } from '~/lib/common/generated/gql/gql'
export const projectPresentationPageQuery = graphql(`
query ProjectPresentationPage(
$input: SavedViewGroupViewsInput!
$savedViewGroupId: ID!
$projectId: String!
) {
project(id: $projectId) {
id
limitedWorkspace {
id
...PresentationLeftSidebar_LimitedWorkspace
}
savedViewGroup(id: $savedViewGroupId) {
id
title
...PresentationViewerPageWrapper_SavedViewGroup
...PresentationHeader_SavedViewGroup
...PresentationSlideList_SavedViewGroup
...PresentationInfoSidebar_SavedViewGroup
views(input: $input) {
totalCount
items {
id
name
description
screenshot
projectId
visibility
...PresentationInfoSidebar_SavedView
group {
id
}
}
}
}
}
}
`)