Is any of the following part of the prisma road ma...
# orm-help
т
Is any of the following part of the prisma road map • adding aggregate to the fluent api and batch those requests, so they can be called from the parent model or • allowing aggregate queries to be batched regardless
Copy code
const User = objectType({
  name: 'User',
  definition(t) {
    <http://t.nonNull.int|t.nonNull.int>('id')
    t.string('name')
    t.nonNull.string('email')
    t.nonNull.list.nonNull.field('posts', {
      type: 'Post',
      resolve: (parent, _, context) => {
        return context.prisma.user
          .findUnique({
            where: { id: parent.id || undefined },
          })
          .aggregate(*some logic)
      },
    })
  },
})
r
As per our latest roadmap, currently this isn’t in the pipeline.