Refactor tests command menu (#1702)
* Fix tests * Refactor tests command menu * Improve tests * Fix optimistic render breaking tests
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
import { GetPeopleDocument, Person } from '~/generated/graphql';
|
||||
import { Person } from '~/generated/graphql';
|
||||
|
||||
import { GET_PEOPLE } from '../queries/getPeople';
|
||||
|
||||
export const getPeopleOptimisticEffectDefinition = {
|
||||
key: 'generic-entity-table-data-people',
|
||||
typename: 'Person',
|
||||
query: GetPeopleDocument,
|
||||
query: GET_PEOPLE,
|
||||
resolver: ({
|
||||
currentData,
|
||||
newData,
|
||||
|
||||
@ -1,6 +1,9 @@
|
||||
import { gql } from '@apollo/client';
|
||||
|
||||
import { PERSON_FIELDS_FRAGMENT } from '../fragments/personFieldsFragment';
|
||||
|
||||
export const GET_PEOPLE = gql`
|
||||
${PERSON_FIELDS_FRAGMENT}
|
||||
query GetPeople(
|
||||
$orderBy: [PersonOrderByWithRelationInput!]
|
||||
$where: PersonWhereInput
|
||||
|
||||
Reference in New Issue
Block a user