fix: add firstName and lastName to user model (#473)

* fix: add firstname and lastanme to user model

* fix: avoid undefined in displayName resolve field

* fix: user firstName and lastName instead of firstname lastname

* fix: person table proper naming firstName lastName

* fix: migrate front with firstName and lastName

* fix: make front-graphql-generate not working
This commit is contained in:
Jérémy M
2023-06-29 17:11:15 +02:00
committed by GitHub
parent d9af205ccb
commit 097b278b11
100 changed files with 606 additions and 329 deletions

View File

@ -3,8 +3,8 @@ import { gql } from '@apollo/client';
export const UPDATE_PERSON = gql`
mutation UpdatePeople(
$id: String
$firstname: String
$lastname: String
$firstName: String
$lastName: String
$phone: String
$city: String
$companyId: String
@ -17,13 +17,14 @@ export const UPDATE_PERSON = gql`
city: { set: $city }
company: { connect: { id: $companyId } }
email: { set: $email }
firstname: { set: $firstname }
firstName: { set: $firstName }
id: { set: $id }
lastname: { set: $lastname }
lastName: { set: $lastName }
phone: { set: $phone }
createdAt: { set: $createdAt }
}
) {
id
city
company {
domainName
@ -31,9 +32,8 @@ export const UPDATE_PERSON = gql`
id
}
email
firstname
id
lastname
firstName
lastName
phone
createdAt
}
@ -43,8 +43,8 @@ export const UPDATE_PERSON = gql`
export const INSERT_PERSON = gql`
mutation InsertPerson(
$id: String!
$firstname: String!
$lastname: String!
$firstName: String!
$lastName: String!
$phone: String!
$city: String!
$email: String!
@ -53,14 +53,15 @@ export const INSERT_PERSON = gql`
createOnePerson(
data: {
id: $id
firstname: $firstname
lastname: $lastname
firstName: $firstName
lastName: $lastName
phone: $phone
city: $city
email: $email
createdAt: $createdAt
}
) {
id
city
company {
domainName
@ -68,9 +69,8 @@ export const INSERT_PERSON = gql`
id
}
email
firstname
id
lastname
firstName
lastName
phone
createdAt
}