kandimat/redaktions-app/src/backend/mutations/signUp.ts
Christoph Lienhard dd2f414f00
#11 backend: nodeId -> id and id -> rowId
To be more in sync with typical graphql servers.
2020-12-29 11:35:34 +01:00

27 lines
598 B
TypeScript

import {gql} from "@apollo/client";
export const SIGN_UP = gql`
mutation CreateAccount($firstName: String!, $lastName: String!, $email: String!, $password: String!) {
registerPerson(input: {firstName: $firstName, lastName: $lastName, email: $email, password: $password}) {
person {
id
}
}
}
`
export interface SignUpVariables {
firstName: string,
lastName: string,
email: string,
password: string,
}
export interface SignUpResponse {
registerPerson: {
person: {
id: string
}
}
}