Files
2022-05-27 20:21:01 +03:00

116 lines
2.7 KiB
GraphQL

query Apartments($filters: ApartmentFilterInput, $first: Int, $offset: Int, $myOwn: Boolean = false, $favorites: Boolean = false, $sort: [ApartmentSortEnum], $onlyTotalCount: Boolean = false, $user: String!) {
apartments(filters: $filters, first: $first, offset: $offset, myOwn: $myOwn, favorites: $favorites, sort: $sort) {
pageInfo {
total
}
apartments @skip(if: $onlyTotalCount) {
id
status
place {
lon
lat
address
city {
name
country {
name
}
}
}
status
isFavorite
m2
livingM2
kitchenM2
rooms
floor
numberOfFloors
description
buildingYear
houseType
hasElevator
hasCargoElevator
balconies
hasLoggia
hasYardWindows
hasStreetWindows
combinedBaths
dividedBaths
ceilingHeight
hasGroundParking
hasUndergroundParking
hasMultilevelParking
housingComplex
hasGas
hasVideoSurveillance
hasIntercom
hasConcierge
hasSecurity
hasGarbageChute
subways {
way
minutes
}
isStudio
number @include(if: $myOwn)
photos(size: SIZE_981x402) {
id
link
docType
}
documents {
id
link
name
docType
}
user {
id
email
phone
}
actualRental {
expirationDate
}
latestAuction {
endDate
winner {
eosAccount
}
hasUnconfirmedTxns
notaryAccount
ownerAccount
cancelBidParams {
amount
symbol
to
memo
contract
action
}
hasAccountBid(account: $user)
paymentInfo {
payment
paymentFee
memo
token
platformAccount
}
}
}
}
}