File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 1
1
query getContactById ($id : ID ! ) {
2
2
contacts : allContacts (
3
3
where : { id : $id }
4
+ first : 1
4
5
) {
5
6
id
6
7
name
@@ -26,6 +27,7 @@ query getContactById ($id: ID!) {
26
27
query getContactByUnit ($propertyId : ID ! , $unitName : String ! , $unitType : ContactUnitTypeType ! ) {
27
28
contacts : allContacts (
28
29
where : { unitName : $unitName , unitType : $unitType , property : { id : $propertyId } }
30
+ first : 50
29
31
) {
30
32
id
31
33
name
Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ export type GetProcessingTasksSuspenseQueryHookResult = ReturnType<typeof useGet
485
485
export type GetProcessingTasksQueryResult = Apollo . QueryResult < Types . GetProcessingTasksQuery , Types . GetProcessingTasksQueryVariables > ;
486
486
export const GetContactByIdDocument = gql `
487
487
query getContactById($id: ID!) {
488
- contacts: allContacts(where: {id: $id}) {
488
+ contacts: allContacts(where: {id: $id}, first: 1 ) {
489
489
id
490
490
name
491
491
email
@@ -544,6 +544,7 @@ export const GetContactByUnitDocument = gql`
544
544
query getContactByUnit($propertyId: ID!, $unitName: String!, $unitType: ContactUnitTypeType!) {
545
545
contacts: allContacts(
546
546
where: {unitName: $unitName, unitType: $unitType, property: {id: $propertyId}}
547
+ first: 50
547
548
) {
548
549
id
549
550
name
You can’t perform that action at this time.
0 commit comments