We should use the full introspection to get all fields and inputFields and be able to check what is included.
For context:
We added #2534 which is just a viewer with the root viewingRooms as viewingRoomsConnection. Then we added #2591 to have an inputField statuses. But now Viewer.viewingRoomsConnection is missing statuses so we added #2593.
In that last PR I have something I tried in the description that I will copy here.
I tried adding a test for inputFields include statuses, but I couldn't add this in an easy way.
I tried getting it by using something like getFieldsForTypeFromSchema but for inputFields, but there is no "type" that these are attached to.
I did find and try this which worked and gave me the whole schema basically. I'm sure we could use this in a test and get everything and them map it in an object that we can ask like Viewer.viewingRoomsConnection.inputFields includes statuses.
We should use the full introspection to get all fields and inputFields and be able to check what is included.
For context:
We added #2534 which is just a viewer with the root
viewingRoomsasviewingRoomsConnection. Then we added #2591 to have an inputFieldstatuses. But nowViewer.viewingRoomsConnectionis missingstatusesso we added #2593.In that last PR I have something I tried in the description that I will copy here.
I tried adding a test for
inputFields include statuses, but I couldn't add this in an easy way.I tried getting it by using something like
getFieldsForTypeFromSchemabut for inputFields, but there is no "type" that these are attached to.I did find and try this which worked and gave me the whole schema basically. I'm sure we could use this in a test and get everything and them map it in an object that we can ask like
Viewer.viewingRoomsConnection.inputFields includes statuses.