Join Slack
Powered by
has prisma remove the ability to run meta queries ...
# prisma-whats-new
j
jjaybrown98
02/08/2018, 6:06 PM
has prisma remove the ability to run meta queries such as counts?
n
nilan
02/08/2018, 6:09 PM
this has moved to the
xConnection.edges.aggregate.count
queries
j
jjaybrown98
02/08/2018, 6:15 PM
this makes so much sense! I assumed a connection was for subscriptions
w
wesbos
02/08/2018, 6:15 PM
@jjaybrown98
Here is an example of where I want to get counts and some other data useful for pagination
http://wes.io/pPLs
💡 1
wesbos
02/08/2018, 6:15 PM
I love the has next/prev booleans - I removed a bunch of logic and replaced with that
n
nilan
02/08/2018, 6:16 PM
That's relay style pagination, called cursor based pagination 🙂 Apollo works well with it, too.
j
jjaybrown98
02/08/2018, 6:16 PM
yes this just makes it so much easier for pagination
3
Views
Open in Slack
Previous
Next