We are unable to set arrays defined in Prisma schema.
this doesn’t work for any type ie. String or enum MyEnumType arrays.
we found similar reference to this error in public
We are unable to set arrays defined in Prisma schema.
this doesn’t work for any type ie. String or enum MyEnumType arrays.
we found similar reference to this error in public
WG error:
The current database provider doesn’t support a feature that the query used: Unhandled and unsupported value mapping for MongoDB
"error_code":"P2026"}}]}"}
{"component": "@wundergraph/wunderctl", "component": "@wundergraph/node", "request": "{\"query\":\"mutation{FE_createOneUserSgUi: createOneUserSgUi(data: {tenantUid: {set: {tenantUid: \\\"222222\\\"}},loginId: \\\"11111\\\",solutionGraphUid: {set: {solutionGraphUid: \\\"5beea202-9a35-4bb5-a64a-cf3baf48f2ce\\\"}},menuBarContext: {set:{neSolutionGraphAreas:{set:[\\\"INTENT\\\",\\\"OBJECT\\\"]},neSelectedCanvas:\\\"GRAPH_CANVAS\\\",neDefaultNodeStyling:\\\"DESIGNER\\\",neDesignerNodeStyling:{set:[\\\"IMAGE\\\",\\\"LABEL\\\"]},neDisplayLanguage:{countryIsoCode:\\\"US\\\",languageIsoCode:\\\"EN\\\",languageDisplayName:\\\"ENGLISH\\\"},neAppMode:\\\"AAA\\\",sgBranchSelectionId:{sgBranchId:\\\"BR111\\\"},sgBranchSelectionName:\\\"BBBB\\\",sgVersionSelectionId:{sgVersionId:\\\"1001\\\"},sgOptionSelectionId:{sgOptionId:\\\"555555\\\"},sgSoidSelectionIndex:0,sgSoidSelectionName:\\\"A\\\",sgOptionSelectionName:\\\"SP\\\"}},,,,}){menuBarContext {neSolutionGraphAreas neSelectedCanvas neDefaultNodeStyling neDesignerNodeStyling neDisplayLanguage {countryIsoCode languageIsoCode languageDisplayName} neAppMode sgBranchSelectionId {sgBranchId} sgBranchSelectionName sgVersionSelectionId {sgVersionId} sgOptionSelectionId {sgOptionId} sgSoidSelectionIndex sgSoidSelectionName sgOptionSelectionName}}}\",\"variables\":{}}", "response": "{\"errors\":[{\"error\":\"Error occurred during query execution:\\nConnectorError(ConnectorError { user_facing_error: Some(KnownError { message: \\\"The current database provider doesn't support a feature that the query used: Unhandled and unsupported value mapping for MongoDB: { \\\\\\\"set\\\\\\\": [Enum(\\\\\\\"INTENT\\\\\\\"), Enum(\\\\\\\"OBJECT\\\\\\\")] } as Enum(\\\\\\\"SolutionGraph\\\\\\\").\\\", meta: Object({\\\"feature\\\": String(\\\"Unhandled and unsupported value mapping for MongoDB: { \\\\\\\"set\\\\\\\": [Enum(\\\\\\\"INTENT\\\\\\\"), Enum(\\\\\\\"OBJECT\\\\\\\")] } as Enum(\\\\\\\"SolutionGraph\\\\\\\").\\\")}), error_code: \\\"P2026\\\" }), kind: UnsupportedFeature(\\\"Unhandled and unsupported value mapping for MongoDB: { \\\\\\\"set\\\\\\\": [Enum(\\\\\\\"INTENT\\\\\\\"), Enum(\\\\\\\"OBJECT\\\\\\\")] } as Enum(\\\\\\\"SolutionGraph\\\\\\\").\\\") })\",\"user_facing_error\":{\"is_panic\":false,\"message\":\"The current database provider doesn't support a feature that the query used: Unhandled and unsupported value mapping for MongoDB: { \\\"set\\\": [Enum(\\\"INTENT\\\"), Enum(\\\"OBJECT\\\")] } as Enum(\\\"SolutionGraph\\\").\",\"meta\":{\"feature\":\"Unhandled and unsupported value mapping for MongoDB: { \\\"set\\\": [Enum(\\\"INTENT\\\"), Enum(\\\"OBJECT\\\")] } as Enum(\\\"SolutionGraph\\\").\"},\"error_code\":\"P2026\"}}]}"}
Thank you for reporting.
Can you give us some steps or a simplified version of your Prisma schema to replicate this issue?
I think an abbreviated schema + Operation should be sufficient.
prima schema:
type MenuBarContext {
neSolutionGraphAreas SolutionGraph[] @default([INTENT, OBJECT])
neSelectedCanvas Canvas @default(GRAPH_CANVAS)
neDefaultNodeStyling NodeStyling @default(DESIGNER)
// is this correct defaults @Dilip @Raman
neDesignerNodeStyling DesignerNodeComponents[] @default([PARENT_DIFF_TABLE])
neDisplayLanguage Language // composite type
neAppMode String? @default("")
sgBranchSelectionId Brid // composite type
sgOptionSelectionId Soid // composite type
}
enum SolutionGraph {
INTENT
OBJECT
PRODUCT
LOCATION
ORPHAN
DELETED
}
enum Canvas {
GRAPH_CANVAS
TABLE_CANVAS
}
enum NodeStyling {
DESIGNER
ANALYST
}
// is this correct enum considering all changes? @Raman @Dilip
enum DesignerNodeComponents {
IMAGE
LABEL
PARENT_DIFF_TABLE
}
mutation UpdateMenuBarContext (
$solutionGraphUid: String!
$userId: String!
$tenantId: String!
$menuBarContext: FE_MenuBarContextNullableCreateEnvelopeInput
) {
FE_createOneUserSgUi (
data: {
tenantUid: {
set : {
tenantUid: $tenantId
}
},
loginId: $userId,
solutionGraphUid: {
set: { solutionGraphUid: $solutionGraphUid}
},
menuBarContext: $menuBarContext
}
) {
menuBarContext {
...MenuBarContext
}
}
}
has context menu
Compose
{
"solutionGraphUid": "5beea202-9a35-4bb5-a64a-cf3baf48f2ce",
"userId": "11111",
"tenantId": "222222",
"menuBarContext" :{
"set": {
"neSolutionGraphAreas": {
"set": ["INTENT", "OBJECT"]
},
"neSelectedCanvas": "GRAPH_CANVAS",
"neDefaultNodeStyling": "DESIGNER",
"neDesignerNodeStyling": {
"set": ["IMAGE", "LABEL"]
},
"neDisplayLanguage": {
"countryIsoCode": "US",
"languageIsoCode": "EN",
"languageDisplayName": "ENGLISH"
},
"neAppMode": "AAA",
"sgBranchSelectionId": {
"sgBranchId": "BR111"
},
"sgBranchSelectionName": "BBBB",
"sgVersionSelectionId": {
"sgVersionId": "1001"
},
"sgOptionSelectionId": {
"sgOptionId": "555555"
},
"sgSoidSelectionIndex": 0,
"sgSoidSelectionName": "A",
"sgOptionSelectionName": "SP"
}
}
}
has context menu
Please let me know if you need more information.