Files
speckle-server/packages/frontend-2/lib/common/graphql/queries.ts
T
2025-03-31 16:44:07 +02:00

50 lines
1010 B
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
export const mentionsUserSearchQuery = graphql(`
query MentionsUserSearch($query: String!, $projectId: String) {
users(input: { query: $query, limit: 5, cursor: null, projectId: $projectId }) {
items {
id
name
company
}
}
}
`)
export const serverInfoBlobSizeLimitQuery = graphql(`
query ServerInfoBlobSizeLimit {
serverInfo {
configuration {
blobSizeLimitBytes
}
}
}
`)
export const serverInfoAllScopesQuery = graphql(`
query ServerInfoAllScopes {
serverInfo {
scopes {
name
description
}
}
}
`)
export const projectModelsSelectorValuesQuery = graphql(`
query ProjectModelsSelectorValues($projectId: String!, $cursor: String) {
project(id: $projectId) {
id
models(limit: 100, cursor: $cursor) {
cursor
totalCount
items {
...CommonModelSelectorModel
}
}
}
}
`)