Invoice enter modal now saves invoices.

This commit is contained in:
Patrick Fic
2020-03-03 10:24:00 -08:00
parent c8ba3295bf
commit cb0b5c552c
7 changed files with 103 additions and 58 deletions

View File

@@ -0,0 +1,11 @@
import { gql } from "apollo-boost";
export const INSERT_NEW_INVOICE = gql`
mutation INSERT_NEW_INVOICE($invoice: [invoices_insert_input!]!) {
insert_invoices(objects: $invoice) {
returning {
id
}
}
}
`;