mirror of
https://github.com/hazemKrimi/crimson-quirks-ui.git
synced 2026-05-02 02:30:29 +00:00
Update gql types and mutations
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user