I have been trying to update the schema on fauna for a couple of days now. There are no errors that pop up and fauna says that the update is successful but it’s not. After updating, I checked the modified fields and they are still the same as before I tried updating. I’ve seen this issue before and the way I fixed it was to just overwrite the schema, but I can’t do that now. I have Live data on the system and can only modify it.
I have seen other topics on here with similar issues, and I have tried resolving my issue the same way those topics resolved their issues. But nothing seems to work.
The schema I’m trying to upload:
type System {
newest_order: Int
month: String @unique
orders: [Order] @relation
}
type Order {
version: String
created_at: Time @required
order_id: String
order_source: String
po_number: String
customer_notes: String
internal_notes: String
status: String @required
stage: String
sendTo: String
printed: Boolean
product_string: String
buyer: Buyer @relation
recipient: Recipient @required
package: Package
shipment: Shipment
products: [Product] @required
payment: Payment
order_history: System @relation
}
type Buyer {
type: String
email: String! @unique
first_name: String
last_name: String
company: String
orders: [Order] @relation
}
type Recipient @embedded {
pick_up: Boolean
first_name: String @required
last_name: String @required
address_1: String @required
address_2: String
city: String @required
state: String @required
zip: String @required
full_string: String
}
type Package @embedded {
width: Float
height: Float
length: Float
pounds: Float
ounces: Float
}
type Shipment @embedded {
status: String
shipengine: ShipEngine
}
type ShipEngine @embedded {
cost: Float
shipment_id: String
label_id: String
service_code: String
tracking_number: String
object: String
verified: Boolean
verifiedIssue: Boolean
label_download: Label
rates: [Rate]
}
type Label @embedded {
pdf: String
png: String
zpl: String
href: String
}
type Rate @embedded {
rate_id: String
rate_type: String
carrier_id: String
shipping_amount: Amount
insurance_amount: Amount
confirmation_amount: Amount
other_amount: Amount
package_type: String
ship_date: Time
service_type: String
service_code: String
trackable: Boolean
carrier_code: String
carrier_nickname: String
carrier_friendly_name: String
validation_status: String
}
type Amount @embedded {
currency: String
amount: Float
}
type Product @embedded {
quantity: Int @required
status: String
sku: String
description: String
image_url: String
image_url_thumbnail: String
image_url_medium: String
image_url_large: String
image_type: String
image_id: String
}
type Payment @embedded {
type: String
status: String
}
# Users including admins, and dropshippers
type User {
created_at: Time @required
type: String # dropshipper, admin, staff, production, shipping, invoicing, etc.
#permissions: [Permissions]
#code: String @required
email: String @required
first_name: String
last_name: String
company: String
#auth_token: String
}