Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Store sentence IDs in the correct named entity field #50

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

reefdog
Copy link
Contributor

@reefdog reefdog commented Mar 28, 2019

Prior to this change, when named entities were created, their appearing sentence wasn’t being associated because we were trying to store its ID in sentenceId instead of sentence_id, the latter of which is the actual Postgres column name.

49-null-sentence-id

However, by explicitly snake-casing at this point, we may be breaking some of the correct stitching of snake-cased Postgres fields to camelCased object attributes, and so we need to debug whether this is all associated together correctly by Sequelize and queryable by GraphQL.

Closes #49

Prior to this change, when named entities were created, their appearing
sentence wasn’t being associated because we were trying to store its ID
in `sentenceId` instead of `sentence_id`, the latter of which is the
actual Postgres column name.

However, by explicitly snake-casing at this point, we may be breaking
some of the correct stitching of snake-cased Postgres fields to
camelCased object attributes, and so we need to debug whether this is
all associated together correctly by Sequelize and queryable by GraphQL.

Affects #49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant