Skip to content

Commit

Permalink
Implement basic functionalities of person page
Browse files Browse the repository at this point in the history
  • Loading branch information
getwithashish committed Sep 9, 2023
1 parent 74b63e4 commit b42cfa8
Show file tree
Hide file tree
Showing 3 changed files with 312 additions and 160 deletions.
33 changes: 33 additions & 0 deletions Tithe-Vue/src/externalized-data/graphqlMutations.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,39 @@ export const activateFamilyMutation = `mutation activateFamily ($familyId: ID!){
}
`;

// Person Mutations

export const createPersonMutation = `mutation createPerson ($person: PersonMutationInput!){
createOnePerson (person: $person){
personId
personName
}
}
`;

export const deactivatePersonMutation = `mutation removePerson ($personId: ID!){
deactivateOnePerson (personId: $personId){
personId
personName
}
}
`;

export const activatePersonMutation = `mutation activatePerson ($personId: ID!){
activateOnePerson (personId: $personId){
personId
personName
}
}
`;

export const createRelationMutation = `mutation createRelation ($relation: String!){
createOneRelation(relation: $relation){
relationId
relationName
}
}`;

// Address Mutations

export const createStreetMutation = `mutation createNewStreet ($streetName: String!){
Expand Down
9 changes: 9 additions & 0 deletions Tithe-Vue/src/externalized-data/graphqlQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,15 @@ export const personAllPersonListQuery = `query personPageActivePerson ($parishId
}
}`;

export const personAllFamilyListQuery = familyAllFamilyListQuery;

export const personAllRelationListQuery = `query personPageRelations{
getAllRelations{
relationId
relationName
}
}`;

// Address Queries

export const similarStreetListQuery = `query similarStreetList ($streetName: String!){
Expand Down
Loading

0 comments on commit b42cfa8

Please sign in to comment.