I am getting errors on fragment syntax (…) I am working on ruby on rails project. Could someone please guide me here?
fetch_query =
"query($ids: [ID!]!) {
nodes(ids: $ids) {
... on Order {
id
customerJourney {
moments {
... on CustomerVisit {
utmParameters {
source
campaign
content
medium
term
}
}
}
}
}
}
}
}"
fetch_body = {
query: fetch_query,
variables: {ids: ["gid://shopify/Order/3788714410115"]}
}
response = Shopify::GraphqlQuery.call(fetch_body, Shop.last)
response.body