65 lines
901 B
GraphQL
65 lines
901 B
GraphQL
query listBusinesses @auth(level: USER) {
|
|
businesses {
|
|
id
|
|
businessName
|
|
contactName
|
|
userId
|
|
companyLogoUrl
|
|
phone
|
|
email
|
|
hubBuilding
|
|
address
|
|
city
|
|
area
|
|
sector
|
|
rateGroup
|
|
status
|
|
notes
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
}
|
|
|
|
query getBusinessesByUserId($userId: String!) @auth(level: USER) {
|
|
businesses(where: { userId: { eq: $userId } }) {
|
|
id
|
|
businessName
|
|
contactName
|
|
userId
|
|
companyLogoUrl
|
|
phone
|
|
email
|
|
hubBuilding
|
|
address
|
|
city
|
|
area
|
|
sector
|
|
rateGroup
|
|
status
|
|
notes
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
}
|
|
|
|
query getBusinessById($id: UUID!) @auth(level: USER) {
|
|
business(id: $id) {
|
|
id
|
|
businessName
|
|
contactName
|
|
userId
|
|
companyLogoUrl
|
|
phone
|
|
email
|
|
hubBuilding
|
|
address
|
|
city
|
|
area
|
|
sector
|
|
rateGroup
|
|
status
|
|
notes
|
|
createdAt
|
|
updatedAt
|
|
}
|
|
} |