282 on opportunities page data pipeline + companies + people is fetched from be (#285)
* feature: get pipelines columns from backend * feature: display item not found instead of crashing * feature: add BoardCard component * feature: display items from the backend * refactor: extract useBoard in a hook * refactor: export only loading and error from useBoard * refactor: create var pipelineStage * feature: implement support for Company boards
This commit is contained in:
19
front/src/modules/opportunities/queries/index.ts
Normal file
19
front/src/modules/opportunities/queries/index.ts
Normal file
@ -0,0 +1,19 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
export const GET_PIPELINES = gql`
|
||||
query GetPipelines {
|
||||
findManyPipeline(skip: 1) {
|
||||
id
|
||||
name
|
||||
pipelineStages {
|
||||
name
|
||||
color
|
||||
pipelineProgresses {
|
||||
id
|
||||
associableType
|
||||
associableId
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user