Hi!
The introspection used in the GraphQL Toolbox is powered by this tool. Just sharing this as potentially useful information.
The error you show in the picture indicates that there is likely an inconsistency in the database you're introspecting.
Thanks for sharing the link to the graphql , it was helpful.
In my recent findings the relationships created using the Graph Data Science library and geospatial algorithms were the reason for the error in 'relType'.
After using the below command:
match (n : "Node_Label") detach delete n
The introspection was successful, but it still took 5-10 mins for the Type definitions to be completed.
Glad you could resolve the issue!
It's not uncommon that the introspection, with the tool I linked, is taking several minutes for large datasets. The idea of the introspection tool is to create a first version of GraphQL type definitions which then can (and usually should) be modified by the user.
So it is advisable, to use this GraphQL toolbox for small datasets, e.g. +1000 nodes and +1000 relationships before importing large bulks of data into the database of size 100,000 nodes and 100,000 relationships?
The GraphQL Toolbox was developed to allow users to experiment and interact with the @neo4j/graphql library in a smooth and quick way. Therefore it's not really built (or optimized) for large datasets. Therefore if you have the ability to work with a subset of your data, please do so. The @neo4j/graphql library itself, not used as part of the GraphQL Toolbox, however can easily handle the dataset you describe.