Opportunity fields (#744)
* Add opportunity probability and point of contact * Have requests sent properly * Add probaility field
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user