src/app/data/project/project-store.service.ts
This service provides get, create and delete operations for projects With the get-method only the id and name of one project, specified by the id, will be fetched The getFulProject method fetches all the information of a project the database provides The getAll method fetches the name and id for all projects. This is used to reduce transfered data while showing the projects list
Methods |
constructor(authService: AuthenticationService, getAllQuery: GetAllProjectsGQL, getBasicProjectQuery: GetBasicProjectGQL, getFullQuery: GetFullProjectGQL, createProject: CreateProjectGQL, deleteProject: DeleteProjectGQL)
|
|||||||||||||||||||||
Parameters :
|
create |
create(name: string, description: string)
|
Returns :
Observable<any>
|
delete | ||||||
delete(id: string)
|
||||||
Parameters :
Returns :
Observable<any>
|
getAll | ||||||
getAll(filterText: string)
|
||||||
Parameters :
Returns :
Observable<Pick[]>
|
getBasicProject | ||||||
getBasicProject(id: string)
|
||||||
Parameters :
Returns :
Observable<GetBasicProjectQuery>
|
getFullProject | ||||||
getFullProject(id: string)
|
||||||
Parameters :
Returns :
Observable<GetFullProjectQuery>
|