How to use object type and jsonb in mutation? #7528
-
From the docs there's simple example: mutation insert_author($address: jsonb) {
insert_author (
objects: [
{
name: "Ash",
address: $address
}]) {
affected_rows
returning {
id
name
address
}
}
} however, I prefer to use mutation MyMutation($object: orders_insert_input!) {
insert_orders_one(object: $object) {
id
city
country
postal_code
address // jsonb type
}
} with these params:
I've tried a bunch of stuff like passing multiple parameters but no dice. Is there a way to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Oh is this related to #4787? |
Beta Was this translation helpful? Give feedback.
-
ok i’m dumb. i should have just tried running it. the validator has a bug it looks like based on #4787 but if you just run it, it works 🤦 |
Beta Was this translation helpful? Give feedback.
ok i’m dumb. i should have just tried running it. the validator has a bug it looks like based on #4787 but if you just run it, it works 🤦