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

Introspection result missing inputFields #446

Open
msonawane opened this issue Jun 28, 2023 · 1 comment
Open

Introspection result missing inputFields #446

msonawane opened this issue Jun 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@msonawane
Copy link

What version of GraphJin are you using? graphjin version

GraphJin 3.0.18
For documentation, visit https://graphjin.com

Commit SHA-1 : 0c4461a

Have you tried reproducing the issue with the latest release?

yes

What is the hardware spec (RAM, OS)?

16gb amd raisen ubuntu

Steps to reproduce the issue (config used to run GraphJin).

@dosco looks like introspection failes if we have a custom functions for default values

CREATE TABLE users (
id BIGINT NOT NULL PRIMARY KEY DEFAULT public.id_generator (),
full_name VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TIMESTAMP
);

notice id_generator()

introspection failed with following error
{
"errors": [
{
"message": "Introspection result missing inputFields: { kind: "INPUT_OBJECT", name: "productsid_generatorArgsInput", description: "", fields: null, inputFields: null, enumValues: null, interfaces: null, possibleTypes: null }.",
"stack": "Error: Introspection result missing inputFields: { kind: "INPUT_OBJECT", name: "productsid_generatorArgsInput", description: "", fields: null, inputFields: null, enumValues: null, interfaces: null, possibleTypes: null }.\n
]
}

Expected behaviour and actual result.

introspection should work
introspection should not stop if a single table has issues

@msonawane msonawane added the bug Something isn't working label Jun 28, 2023
@msonawane
Copy link
Author

I had a products table with id_generator() too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant