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
Failed to convert 'Object([("set", List([String("07:00"), String("18:00")]))])' to 'String
It work if I remove "set" in fascia_oraria and give the array directly:
"fascia_oraria": [
"07:00",
"18:00"
]
but the original query that was made by typegraphql-prisma required in graphql schema the second set and if I remove it the query failed in graphql.
The problem is that if the object to set is nested in another it should not require the second set.
Bug description
I nees to update a scalar list nested into object on mongodb. The generated script made this query
and generate this error
Failed to convert 'Object([("set", List([String("07:00"), String("18:00")]))])' to 'String
It work if I remove "set" in fascia_oraria and give the array directly:
but the original query that was made by typegraphql-prisma required in graphql schema the second set and if I remove it the query failed in graphql.
The problem is that if the object to set is nested in another it should not require the second set.
How to reproduce
run the script
Expected behavior
No response
Prisma information
prisma.schema
test.ts
Environment & setup
Prisma Version
The text was updated successfully, but these errors were encountered: