Added basic global search. BOD-30
This commit is contained in:
44
client/src/graphql/search.queries.js
Normal file
44
client/src/graphql/search.queries.js
Normal file
@@ -0,0 +1,44 @@
|
||||
import gql from "graphql-tag";
|
||||
|
||||
export const GLOBAL_SEARCH_QUERY = gql`
|
||||
query GLOBAL_SEARCH_QUERY($search: String) {
|
||||
search_jobs(args: { search: $search }) {
|
||||
id
|
||||
ro_number
|
||||
est_number
|
||||
clm_total
|
||||
clm_no
|
||||
v_model_yr
|
||||
v_model_desc
|
||||
v_make_desc
|
||||
v_color
|
||||
plate_no
|
||||
ownr_fn
|
||||
ownr_ln
|
||||
ownr_co_nm
|
||||
}
|
||||
search_owners(args: { search: $search }) {
|
||||
id
|
||||
ownr_fn
|
||||
ownr_ln
|
||||
ownr_co_nm
|
||||
}
|
||||
search_vehicles(args: { search: $search }) {
|
||||
id
|
||||
v_model_yr
|
||||
v_model_desc
|
||||
v_make_desc
|
||||
v_color
|
||||
}
|
||||
search_payments(args: { search: $search }) {
|
||||
id
|
||||
amount
|
||||
job {
|
||||
ro_number
|
||||
id
|
||||
}
|
||||
memo
|
||||
transactionid
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user