I had a `polls` table with some columns in my data...
# help
s
I had a
polls
table with some columns in my database. After some time, I added a
number_of_votes_received
column that defaults to 0 and is updated by a trigger to the
polls
table. When I make a GraphQL query where this column is included, it works well. However, when I try to get the value of
number_of_votes_received
in the GraphQL query, it returns an error "Unknown field 'number_of_votes_received' on type 'polls'." I have checked over and over again and I am certain that there is a
number_of_votes_received
column. Do you know anything that may have caused this behaviour?
n
Hello @supa okezie! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
🆕 GraphQL API not recognizing existing columns
s
I was able to solve this by rebuilding the GraphQL schema by running
select graphql.rebuild_schema()
c
@supa okezie thank you!!
n
GraphQL API not recognizing existing columns