has anyone had issues trying to nested queries. im...
# orm-help
j
has anyone had issues trying to nested queries. im getting back weird error messages but the data is getting to my database just something off on my graphql part.
j
your query is mal-formed
replace
id: 2312312
with
where:{id: "dfdsfsdsdfs"}
it needs to be in a where
you also need to fix the resolver
prisma wants an`args.where`
not
args.id
It'd be better to use Typescript, all these things would show up as red underlines in vscode.
j
Thanks im going to try that out! im still pretty new to this stuff so trying to learn it.
that didnt seem to fix the issue its when im trying to connect this query to the author is where there is issues. if i remove the author part of the query i get back the template by the id that is passed.