Closed (fixed)
Project:
GraphQL Compose
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
19 Feb 2024 at 15:20 UTC
Updated:
6 Apr 2024 at 21:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
abhishek_gupta1 commentedfix the issue and created Patch. please kindly review it
Comment #4
mcortes19 commented@abhishek_gupta1 I added a MR based on your solution
Comment #5
almunningsPatch looks fine, but what concerns me is how an INT is getting there n the first place.
Do you know how to reproduce it? Is it a certain field type or bundle target type?
Comment #6
mcortes19 commented@almunnings We are migrating a site from D7 with a lot of Paragraphs and when we enabled some fields the error appeared, but was hard to identify which field or fields are the cause because was most a random behavior.
Definitely I'll debug thoroughly and posted here my finding. For now this MR fixes the issue!
Comment #8
almunningsI've come at it from a diff angle, I suspect the target_bundles in your data is non assoc, somehow? If thats the case, then the array keys would be ints, and that could explain the issue.
Can you please test?
https://git.drupalcode.org/project/graphql_compose/-/merge_requests/64.diff
Comment #9
mcortes19 commented@almunnings I confirm #8 works for me as well
Comment #11
almunningsIn dev branch, thanks!