Files
crimson-quirks-ui/src/graphql/prototype.api.ts
T
2021-05-21 14:54:58 +01:00

107 lines
1.8 KiB
TypeScript

import gql from 'graphql-tag';
export const GET_PROTOTYPE_BY_ID = gql`
query GetPrototypeById($id: String!) {
getPrototypeById(id: $id) {
id
template
prototype {
feature {
id
name
description
featureType
image {
name
src
}
wireframes {
id
name
src
}
price
repo
}
connections {
to
releations {
back
forword
}
}
}
}
}
`;
export const ADD_PROTOTYPE = gql`
mutation AddPrototype($prototype: TemplateProtoTypeInput!) {
addPrototype(prototype: $prototype) {
id
template
prototype {
feature {
id
name
description
featureType
image {
name
src
}
wireframes {
id
name
src
}
price
repo
}
connections {
to
releations {
back
forword
}
}
}
}
}
`;
export const UPDATE_PROTOTYPE = gql`
mutation UpdatePrototype($prototype: TemplateProtoTypeInput!) {
updatePrototype(prototype: $prototype) {
id
template
prototype {
feature {
id
name
description
featureType
image {
name
src
}
wireframes {
id
name
src
}
price
repo
}
connections {
to
releations {
back
forword
}
}
}
}
}
`;