You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I want to check if there-s any known error or maybe i'm doing something wrong with my GraphQL mutation. What I want is a simple update of a document as follows:
After stringyfing the variable i keep getting the following error:
graphQLErrors: [
{
message: "prolog had the following exception: error(type_error(list,['terminusdb:///data/Producto/Producto%208']),_34290)",
locations: [Array],
path: [Array]
}
],
Should i create a ticket or there's maybe something i'm not considering. Thanks in advance!
I haven't used prolog but apparently seems that is expecting a list with the IDs of the docs to replace (?). The funny part is that appears to be getting a list with one string with the URI of the document i want to replace 😮
The schema for reference:
{
"@documentation": {
"@comment": "Productos disponibles",
"@properties": {
"cantidad": "Cantidad del producto en números decimales.",
"disponible": "Bandera para disponibilizar el producto",
"incorporacion": "Fecha y hora en la que el producto se incorporó a la base de datos, este sirve para control de caducidades y de calidad.",
"nombre": "Nombre del producto, este puede ser un nombre lexico, un id, un identificador interno según especificaciones.",
"precio": "Precio del producto, es un número decimal positivo",
"propiedades": "Objeto que extiende multidimensionalmente las propiedades del producto.",
"unidad": "Este campo indica la unidad física en la que se expresa la cantidad del producto en el inventario, así como el precio del producto refiere a uno de esta unidad. como por ejemplo \"unidad\", \"litro\", \"kilogramo\", etc."
}
},
"@id": "Producto",
"@key": {
"@fields": [
"nombre"
],
"@type": "Lexical"
},
"@metadata": {
"embedding": {
"query": "query($id: ID) {\n\tProducto(id: $id) {\n\t\tcantidad \n\t\tdisponible \n\t\tincorporacion \n\t\tnombre \n\t\tprecio \n\t\tpropiedades \n\t\tunidad\n\t}\n}",
"template": "Nuestro inventario {{disponible \"sí\" true}} {{disponible \"no\" false}} tiene {{cantidad}} {{unidad}} de {{nombre}} disponible a la venta con un precio de {{precio}} pesos. Este producto fue incorporado en {{incorporacion}} con las siguientes características: {{propiedades}}"
}
},
"@type": "Class",
"cantidad": "xsd:decimal",
"disponible": "xsd:boolean",
"incorporacion": "xsd:dateTime",
"nombre": "xsd:string",
"precio": "xsd:decimal",
"propiedades": {
"@class": "sys:JSON",
"@type": "Optional"
},
"unidad": "xsd:string"
}
The text was updated successfully, but these errors were encountered:
Hello, I want to check if there-s any known error or maybe i'm doing something wrong with my GraphQL mutation. What I want is a simple update of a document as follows:
And the variable:
After stringyfing the variable i keep getting the following error:
Should i create a ticket or there's maybe something i'm not considering. Thanks in advance!
I haven't used prolog but apparently seems that is expecting a list with the IDs of the docs to replace (?). The funny part is that appears to be getting a list with one string with the URI of the document i want to replace 😮
The schema for reference:
The text was updated successfully, but these errors were encountered: