-
|
I'm grabbing the count from our Hasura graphql database. export const GET_ME = gql`
query GET_ME {
user {
user_chat_groups_aggregate {
aggregate {
count
}
}
}
`;The problem I'm hitting is {
"user_chat_groups_aggregate": {
"aggregate": {
"count": 1
}
}
}This... keys: {
chat_group_user_aggregate: () => null,
},results in this error. What is the recommended way to handle the nested result with no keys in this situation? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
GollyJer
Jan 5, 2021
Replies: 1 comment 1 reply
-
|
OK, literally two minutes after posting this I read the error more clearly. It looks like this is the solution. keys: {
chat_group_user_aggregate: () => null,
chat_group_user_aggregate_fields: () => null,
},No more warnings but is this correct? Thanks! 👍 |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JoviDeCroock
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
OK, literally two minutes after posting this I read the error more clearly.
It looks like this is the solution.
No more warnings but is this correct? Thanks! 👍