Hi, someone knows how pass a json input variable i...
# orm-help
m
Hi, someone knows how pass a json input variable in the playground? I have tried to escape double quotes but doesn't work,
Reason: 'system' Not valid
Nobody knows how pass a json field as variable in a mutation?
m
From a quick google I see a number of issues reported around JSON and JSONb column types. I also believe I saw something a while ago to say that it wasny fully supported (but cant find where). It might help if you can share your schema and resolver too. Oh, and which DB you are using.
m
Hi Mark, thanks for your response. Yes, I have benn googling about, but I can't find a solution. I have loaded some rows in postgresql and it works in a query response, but as mutation input variable it doesn't work as object or string. I'm not overwritting prisma autogenerated resolvers, so I don't know how fix this issue. 😞
m
can you share the schema for the type you created?
Also, is this just in the playground that you are having an issue or have you tried via code?
m
Here is my full schema, it's the ProductCreateInput input. I have tried it through insomnia and it doesn't work.
I don't know why it's working in a query response like a json but in a mutation input variable doesn't.