```definition(t) { t.nonNull.list.nonNull.field(...
# orm-help
e
Copy code
definition(t) {
		t.nonNull.list.nonNull.field("applicationsByAccountId", {
			type: "Application",
			args: {
				accountId: intArg()
			},
			resolve: (_parent, args, context: Context) => {
				return context.prisma.account
					.findUnique({
						where: { id: args.accountId }
					})
					.applications();
			}
		});
	}
r
@Evan McDaniel 👋 Could you check if the Prisma return type and the type of the Nexus definition is the same?
e
Thanks for the response @Ryan. I’ve actually moved to using TypeGraphQL - which is working really well for me - so don’t have this issue anymore. Happy to follow up with it if you’re curious about it (or think it might be a bug), though. Just let me know.
👍 1