Does it possible or better to have an extra index ...
# prisma-whats-new
m
Does it possible or better to have an extra index like “likesCount”
j
You can use the meta data query to count the number of items in the array
m
@jjaybrown98 can you give me an example with orderBy
j
I don’t have access to a computer right now, but in playground, try __User and you should see the syntax for a meta query. Then use order by and make the field an ID you can use that as a way to retrieve the full record by id
m
@jjaybrown98 you mean orderBy: __User ?
only id and createdAt allowed there (with _ASC _DESC)
hmm seems it doesn’t possible now https://github.com/graphcool/graphcool/issues/95