Feature/optmistically render table create & remove (#1156)
* Add optimistic updates on company table * Add optimistic rendering for tables too * Fix schema
This commit is contained in:
@ -24,16 +24,20 @@ export const UPDATE_ONE_COMPANY = gql`
|
||||
}
|
||||
`;
|
||||
|
||||
export const INSERT_COMPANY_FRAGMENT = gql`
|
||||
fragment InsertCompanyFragment on Company {
|
||||
domainName
|
||||
address
|
||||
id
|
||||
name
|
||||
createdAt
|
||||
}
|
||||
`;
|
||||
|
||||
export const INSERT_ONE_COMPANY = gql`
|
||||
mutation InsertOneCompany($data: CompanyCreateInput!) {
|
||||
createOneCompany(data: $data) {
|
||||
address
|
||||
createdAt
|
||||
domainName
|
||||
linkedinUrl
|
||||
employees
|
||||
id
|
||||
name
|
||||
...InsertCompanyFragment
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user