IO-924 Rest of phonebook implementation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user