hello, i am new at squidex. can you help me? i am facing some code issues. which is a map. when I am doing mutation in the map lat and lng data it’s getting a problem. can you explain how to fix these issues? it’s getting a JsonScaler problem. I checked already without myLocation Data. Without Mylocation Data it seems ok. same issue when I am creating data with location map data. I thing its a Structural issue.
I’m submitting a…
mutation (
$ids: String
$vehicle: [DriverDataVehicleChildInputDto!]
$myLocation: JsonScalar
) {
patchDriverContent(
id: $ids
data: { vehicle: { iv: $vehicle }, myLocation: { iv: $myLocation } }
expectedVersion: -2
) {
id
flatData {
name
email
license
contactNumber
myLocation
isVerified
vehicle {
vehicleType
}
}
}
}
variable
{
"ids":"4e4d3c4e-1181-4508-b180-031d51407ada",
"vehicle":[
{
"vehicleType":"car",
"model":"e-324",
"number":"3216587135",
"level":"after verified Approved"
}
],
"myLocation":{
"latitude":23.7339483,
"longitude":90.3929252
}
}
Current behavior
"message": "Variable '$myLocation' of type 'JsonScalar' used in position expecting type 'JsonScalar'."
Expected behavior
Must be saved value in the cloud
Minimal reproduction of the problem
there is saved flat data when I manually input it inside the cloud
{
"name": "Mohammad Abdur Rahman",
"email": "testdata@gmail.com",
"license": "23847893rwyiwei",
"contactNumber": "0600235196",
"profilePicture": null,
"vehicle": [
{
"vehicleType": "car",
"model": "e-324",
"number": "3216587135",
"level": "after verified Approved"
}
],
"isVerified": null,
"myLocation": {
"latitude": 22.3752075,
"longitude": 91.8348606
}
}
Environment
I am using Squidex built in cloud. So env nothing change at all.
Others:
Please help me. all create and mutations ok. just when I am doing anything with location then facing JsonScalar issues.