val
10/05/2018, 2:40 PMtype User {
id: ID! @unique
numFollowers: Int! @default(value: "0")
}
I then try to run a query like:
return ctx.db.query.users({
orderBy: "numFollowers_DESC",
after: afterId,
first: pageSize
});
But if i run with an afterId that's not null I don't get valid results. I sometimes get duplicates, sometimes nothingnilan
10/05/2018, 2:41 PMcURL statement against the Prisma API directly?val
10/05/2018, 2:44 PMval
10/05/2018, 2:44 PMcurl '<http://localhost:4466/prisma/dev>' -H 'Accept-Encoding: gzip, deflate, br' -H 'Content-Type: application/json' -H 'Accept: application/json' -H 'Connection: keep-alive' -H 'DNT: 1' -H 'Origin: <http://localhost:4466>' -H 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InNlcnZpY2UiOiJwcmlzbWFAZGV2Iiwicm9sZXMiOlsiYWRtaW4iXX0sImlhdCI6MTUzODc1MDU3NiwiZXhwIjoxNTM5MzU1Mzc2fQ.P6FJ9MmKyW7bE8aomw05eXxAlGSmmJ5LL7Q4fiwaSGk' --data-binary '{"query":"query users {\n users(where:{},\n orderBy:numFollowers_DESC,\n after: \"cjmw39yfr00rq0915nlqoumho\",\n first: 3) {\n id\n name\n subtitle\n numFollowers\n }\n}","variables":{"date":"2018-09-08T10:19:10.537Z"}}' --compressedval
10/05/2018, 2:44 PMval
10/05/2018, 2:45 PM1.17.1nilan
10/05/2018, 2:45 PMval
10/05/2018, 2:51 PMval
10/05/2018, 2:51 PMnilan
10/05/2018, 2:54 PM