Files
speckle-server/packages/frontend-2/lib/form/graphql/queries.ts
T
Kristaps Fabians Geikins b02a07e2b6 feat: Frontend 2.0 MVP
2023-05-08 10:47:01 +03:00

15 lines
387 B
TypeScript

import { graphql } from '~~/lib/common/generated/gql'
export const searchProjectsQuery = graphql(`
query SearchProjects($search: String, $onlyWithRoles: [String!] = null) {
activeUser {
projects(limit: 10, filter: { search: $search, onlyWithRoles: $onlyWithRoles }) {
totalCount
items {
...FormSelectProjects_Project
}
}
}
}
`)