Working version

This commit is contained in:
Niklas Fondberg
2021-04-06 14:53:20 +02:00
parent 4532fbc853
commit 813f4c8e47
8 changed files with 104 additions and 15 deletions
+46
View File
@@ -1,6 +1,8 @@
import { gql } from 'apollo-server';
const typeDefs = gql`
scalar DateTime
type Query {
orders: [Order]
order(id: ID!): Order
@@ -8,7 +10,51 @@ const typeDefs = gql`
type Order {
id: ID!
inserted: DateTime
paid: Boolean
confirmed: Boolean
delivered: Boolean
newsletter: Boolean
creditInvoice: Boolean
canceled: Boolean
reminder: Boolean
deliveredDate: DateTime
countryCode: String
language: String
deliveryCountryCode: String
deliveryMethod: String
deliveryPrice: String
deliveryVat: Float
customerType: String
paymentType: String
attention: String
currency: String
exchangeRate: Float
exchangeRateEur: Float
invoiceId: String
contractCustomerId: Int
vatNumber: String
comment: String
cancelsOrderId: Int
cancelledByOrderId: Int
orderlogId: Int
resellerStore: String
orderSum: Float
klarnaOrderId: String
pwintyId: Int
email: String
phone: String
deliveryEmail: String
deliveryPhone: String
customerFirstname: String
customerLastname: String
customerEmail: String
customerCellphone: String
billingAddressId: Int
deliveryAddressId: Int
flyer_ids: String
market: String
locale: String
}
`;