You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you add sentenceId to the GraphQL query for named entities — or go a step further and try to actually include and display the associated sentence content — you aren't able to. If you then check Postgres to see what's up, you'll notice all named entity's sentence_id values are NULL.
Evidently when we create named entities, we aren't associating them with sentences properly.
The text was updated successfully, but these errors were encountered:
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 explictly 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
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
If you add
sentenceId
to the GraphQL query for named entities — or go a step further and try to actually include and display the associated sentence content — you aren't able to. If you then check Postgres to see what's up, you'll notice all named entity'ssentence_id
values areNULL
.Evidently when we create named entities, we aren't associating them with sentences properly.
The text was updated successfully, but these errors were encountered: