Skip to content
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

[GraphQL] Basic query error #2057

Open
gramian opened this issue Mar 12, 2025 · 0 comments
Open

[GraphQL] Basic query error #2057

gramian opened this issue Mar 12, 2025 · 0 comments

Comments

@gramian
Copy link
Collaborator

gramian commented Mar 12, 2025

v25.3.1 (build d86c5c504da14112a6e81cdb6efbc85567137aca/1741368384948/main)

Running on Linux 6.2.0-26-generic - OpenJDK 64-Bit Server VM 17.0.14

Trying to recreate a basic GraphQL example ( https://graphql.org/learn/queries/ ) is not working and causing the following error:

Cannot execute command Cannot invoke "com.arcadedb.graphql.parser.ArgumentsDefinition.getInputValueDefinitions()"
because the return value of "com.arcadedb.graphql.parser.FieldDefinition.getArgumentsDefinition()" is null

This may be also a user error; please correct the example below if necessary. Or is it not possible to directly reference SQL created types and I need to redeclare in GraphQL?

Steps to reproduce:

CREATE DOCUMENT TYPE doc;
CREATE PROPERTY doc.name STRING;
CREATE PROPERTY doc.num LOG;
INSERT INTO doc SET name = "hi", num = 0;
INSERT INTO doc SET name = "ho", num = 1;
type Query { test: doc }
{ test { name } }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant