Files
speckle-server/packages/server/test/graphql/models.ts
T
Kristaps Fabians Geikins 0b2ca9a515 feat: add missing FE1 fields to the FE2 GQL schema (#2471)
* WIP version create

* commitCreate migrated

* minor cleanup

* commitReceived migrated

* added Project.object

* Project.comment introduced

* moving away old API usages in FE1

* ProjectMutations.batchDelete

* project pending access requests

* WIP project access req tests

* project access req tests done

* ModelByName test

* version mutation tests

* project.object tests

* batch delete tests

* minor improvements to redirect logging
2024-07-10 11:33:53 +02:00

26 lines
509 B
TypeScript

import { gql } from 'apollo-server-express'
export const createProjectModelQuery = gql`
mutation CreateProjectModel($input: CreateModelInput!) {
modelMutations {
create(input: $input) {
id
name
description
}
}
}
`
export const findProjectModelByNameQuery = gql`
query FindProjectModelByName($projectId: String!, $name: String!) {
project(id: $projectId) {
modelByName(name: $name) {
id
name
description
}
}
}
`