Skip to content

Introspection result missing inputFields #446

@msonawane

Description

@msonawane

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions