This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/:\1/' | |
} | |
export PS1="\W\$(git_branch) > \[${RESET}\]" | |
## result, when there isn't branch: | |
## PATH > | |
## result, when there is branch: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
createUser(firstName:string,lastName:string,age:number){ | |
console.log('create service') | |
return this.apollo.mutate<any>({ | |
mutation:createUsers, | |
variables:{firstName,lastName,age} | |
}).pipe( | |
map(resp => resp.data) | |
) | |
} |