How to represent objects in args (v.object)
Hi, I know that I can use
args: { lat: v.number(), lng: v.number() },
for a mutation (didn't check it for a query) and it would work fine.
But I'm curious why I can't define the args like that:
args: { coord: { lat: v.number(), lng: v.number() } },
because then I get this error on mutation:
^ You get the idea2 Replies
the syntax for that is
args: { coord: v.object({ lat: v.number(), lng: v.number() }) },
Ups. thank you