Closed pakatagoh closed 3 years ago
The image below shows the query generated by pal g. The generated query for an Organisation model has findFirstOrganisations return type is an array.
pal g
Organisation
findFirstOrganisation
It's not consistent with the return type of the findFirstOrganisation resolver.
Should the return type be Organisation instead of [Organisation!] ?
[Organisation!]
See the return type for findFirst here: https://www.prisma.io/docs/concepts/components/prisma-client/crud#return-type-1
findFirst
Currently using @paljs/cli and @paljs/plugins v2.11.0, prisma/client and @prisma/cli v2.14.0
v2.11.0
v2.14.0
Potential fix in #167
Fixed by @pakatagoh
thanks! @AhmedElywa
Do you know when you'll publish a new release with the changes?
Today, sorry for late.
V2.11.1 have your fix
The image below shows the query generated by![image](https://user-images.githubusercontent.com/37908805/104119890-ab92d700-536d-11eb-8f9f-9685fa97aaa1.png)
pal g
. The generated query for anOrganisation
model hasfindFirstOrganisation
s return type is an array.It's not consistent with the return type of the
findFirstOrganisation
resolver.Should the return type be
Organisation
instead of[Organisation!]
?See the return type for
findFirst
here: https://www.prisma.io/docs/concepts/components/prisma-client/crud#return-type-1Currently using @paljs/cli and @paljs/plugins
v2.11.0
, prisma/client and @prisma/cliv2.14.0