Images upload as resized images. Added location hash for jobs detail page.
This commit is contained in:
22
client/src/graphql/documents.queries.js
Normal file
22
client/src/graphql/documents.queries.js
Normal file
@@ -0,0 +1,22 @@
|
||||
import { gql } from "apollo-boost";
|
||||
|
||||
export const GET_DOCUMENTS_BY_JOB = gql`
|
||||
query GET_DOCUMENTS_BY_JOB($jobId: uuid!) {
|
||||
documents(where: { jobid: { _eq: $jobId } }) {
|
||||
id
|
||||
url
|
||||
thumb_url
|
||||
name
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export const INSERT_NEW_DOCUMENT = gql`
|
||||
mutation INSERT_NEW_DOCUMENT($docInput: [documents_insert_input!]!) {
|
||||
insert_ducments(objects: $docInput) {
|
||||
returning {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
Reference in New Issue
Block a user