IO-924 Rest of phonebook implementation

This commit is contained in:
Patrick Fic
2021-04-23 09:11:48 -07:00
parent 084c7d9c74
commit ddbb1df9d9
18 changed files with 1331 additions and 1 deletions

View File

@@ -84,6 +84,44 @@ export const INSERT_EXPORT_LOG = gql`
}
`;
export const QUERY_PHONEBOOK_PAGINATED = gql`
query QUERY_PHONEBOOK_PAGINATED(
$search: String
$offset: Int
$limit: Int
$order: [phonebook_order_by!]
) {
search_phonebook(
offset: $offset
limit: $limit
order_by: $order
args: { search: $search }
) {
id
created_at
firstname
lastname
phone1
phone2
state
zip
fax
email
country
company
city
category
address2
address1
}
search_phonebook_aggregate(args: { search: $search }) {
aggregate {
count(distinct: true)
}
}
}
`;
export const QUERY_EXPORT_LOG_PAGINATED = gql`
query QUERY_ALL_EXPORTLOG_PAGINATED(
$search: String