Unable to Introspect using the GraphQL Toolbox

HI there all,

I recently started using this new tool called "GraphQL Toolbox" recently made available in GraphApps Gallery as shown in this link Neo4j and GraphQL in One Toolbox - Neo4j Graph Data Platform

Below are my system specs I am using:
Windows 10
Neo4j Desktop version: 1.4.11
DBMS: 4.4.0

It works for small sized db like the movies dataset and I am able to introspect successfully as shown below:

However, when I used an existing dataset that I created I get the following error

I tried searching all over stackoverflow and github for similar issues but all are not related to neo4j GraphQL toolbox

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.

1 Like

Hi Thomas,

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.

1 Like

Hi Thomas,

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.