Opportunity fields (#744)

* Add opportunity probability and point of contact

* Have requests sent properly

* Add probaility field
This commit is contained in:
Emilien Chauvet
2023-07-18 17:32:15 -07:00
committed by GitHub
parent 87a116d369
commit f98e49c26e
7 changed files with 139 additions and 21 deletions

View File

@ -37,6 +37,13 @@ export const GET_PIPELINE_PROGRESS = gql`
progressableId
amount
closeDate
pointOfContactId
pointOfContact {
id
firstName
lastName
}
probability
}
}
`;
@ -46,10 +53,17 @@ export const UPDATE_PIPELINE_PROGRESS = gql`
$id: String
$amount: Int
$closeDate: DateTime
$probability: Int
$pointOfContactId: String
) {
updateOnePipelineProgress(
where: { id: $id }
data: { amount: { set: $amount }, closeDate: { set: $closeDate } }
data: {
amount: { set: $amount }
closeDate: { set: $closeDate }
probability: { set: $probability }
pointOfContact: { connect: { id: $pointOfContactId } }
}
) {
id
amount