Open akeemphilbert opened 4 years ago
I've updated your issue as it was hard to read the code blocks before, you might like to review the edit so you can improve future issues :+1:
I attempted to reproduce your issue but could not. My attempt can be found here:
Running the server as:
DATABASE_URL="graphile_starter" SCHEMA_NAMES="app_public" node server.js
Issuing this query:
{
userByUsername(username:"benjie") {
id
}
users {
totalCount
}
}
Produced this result:
{
"data": {
"userByUsername": {
"id": "6d7f9b81-cb8a-4536-8cc9-6fcf107e80a7"
},
"users": {
"totalCount": 1
}
}
}
This is as expected. (I used the graphile_starter
database from the Graphile Starter project.)
Please create a working reproduction (with database) as a pull request against the https://github.com/graphile/postgraphile-example-apollo-server repository and then we can take another look.
I have it setup and when I try to query a specific item that seems to work:
and it returns the expected result
but when I try to do the list query the total count is 0 which is odd because there are records there evidenced by my previous search
result
Setup code (note I've tried without the plugins as well no dice, I've also tried without merging the other schema)
dependencies