-
Notifications
You must be signed in to change notification settings - Fork 6
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
UUIDListType fields codegen with errors in the Builder #1793
Comments
The should probably be generated as: addField('horseIDs', input.horseIds);
if (input.horseIds) {
input.horseIds.forEach((horseId) =>
this.orchestrator.addInboundEdge(
horseId,
EdgeType.HorseToCompetitionEntries,
NodeType.Horse,
),
);
}
if (this.existingEnt && this.existingEnt.horseIds) {
this.existingEnt.horseIds.forEach((horseId) => {
if (!input.horseIds?.includes(horseId)) {
this.orchestrator.removeInboundEdge(
horseId,
EdgeType.HorseToCompetitionEntries,
);
}
});
} |
hmm, i think UUIDlistType with inverseEdge hasn't worked in the past. is this a new field? or did this break with v0.2? |
This is a new field. I ended up going a different direction anyways, so I'm not blocked on this, but it's still a valid bug. |
Everything else seemed to work except that builder setting edges. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A field defined as :
generates the following code block in
getEditedFields
:There error is
Argument of type 'ID[]' is not assignable to parameter of type 'ID'
. Not sure if it matters, but for me the field is defined on a pattern.The text was updated successfully, but these errors were encountered: