graphjin icon indicating copy to clipboard operation
graphjin copied to clipboard

Introspection result missing inputFields

Open msonawane opened this issue 1 year ago • 1 comments

What version of GraphJin are you using? graphjin version

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

Commit SHA-1 : 0c4461a769a355328f803c0851c2663ea9ea5d63

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 avatar Jun 28 '23 05:06 msonawane

I had a products table with id_generator() too

msonawane avatar Jun 28 '23 07:06 msonawane